<commit_before><?php

namespace SiestaTest\MySQL\Replication;

use Siesta\Database\StoredProcedureNaming;
use Siesta\Util\File;
use Siesta\Util\SiestaDateTime;
use SiestaTest\MySQL\Replication\Generated\MySQLReplication;
use SiestaTest\MySQL\Util\MySQLTest;

class ReplicationTest extends MySQLTest
{

    public function setUp()
    {
        $this->deleteGenDir(__DIR__ . "/Generated");
        $this->resetSchema();
        $schemaFile = new File(__DIR__ . "/schema/replication.test.xml");
        $this->generateSchema($schemaFile, __DIR__, true);
    }

    public function testSave()
    {
        $replication = new MySQLReplication();
        $replication->setBool(true);
        $replication->setInt(9201);
        $replication->setFloat(312.231);
        $replication->setString("teststring");
        $replication->setDateTime(new SiestaDateTime("2001-07-06 20:00:00"));
        $replication->setDate(new SiestaDateTime("2077-08-19"));
        $replication->setTime(new SiestaDateTime("18:15:00"));
        $replication->getObject()->setX(9);
        $replication->getObject()->setY(12);<commit_msg>replication test<commit_after><?php

namespace SiestaTest\MySQL\Replication;

use Siesta\Database\StoredProcedureNaming;
use Siesta\Util\File;
use Siesta\Util\SiestaDateTime;
use SiestaTest\MySQL\Replication\Generated\MySQLReplication;
use SiestaTest\MySQL\Util\MySQLTest;

class ReplicationTest extends MySQLTest
{

    public function setUp()
    {
        //$this->deleteGenDir(__DIR__ . "/Generated");
        $this->resetSchema();
        $schemaFile = new File(__DIR__ . "/schema/replication.test.xml");
        $this->generateSchema($schemaFile, __DIR__, true);
    }

    public function testSave()
    {
        $replication = new MySQLReplication();
        $replication->setBool(true);
        $replication->setInt(9201);
        $replication->setFloat(312.231);
        $replication->setString("teststring");
        $replication->setDateTime(new SiestaDateTime("2001-07-06 20:00:00"));
        $replication->setDate(new SiestaDateTime("2077-08-19"));
        $replication->setTime(new SiestaDateTime("18:15:00"));
        $replication->getObject()->setX(9);
        $replication->getObject()->setY(12);
{'fraction_non_alphanumeric': 0.1456179775280899, 'fraction_numerical': 0.036853932584269666, 'mean_word_length': 3.7161016949152543, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1778717', 'n_tokens_mistral': 736, 'n_tokens_neox': 685, 'n_words': 98}