<commit_before><?php
require_once dirname(__FILE__).'/../src/Mqb/Builder.php';

class BuilderTest extends PHPUnit_Framework_TestCase
{
  public function testSimple()
  {
    $builder = new Mqb_Builder();
    $query = $builder->query();
    $query->add('some_column', 'value');

    $this->assertEquals(array('some_column' => 'value'), $query->build());
  }
}<commit_msg>値が配列になるパターンを実装。<commit_after><?php
require_once dirname(__FILE__).'/../src/Mqb/Builder.php';

class BuilderTest extends PHPUnit_Framework_TestCase
{
  public function testSimple()
  {
    $builder = new Mqb_Builder();

    $query = $builder->query();
    $query->add('some_column', 'value1');
    $this->assertEquals(array(
      'some_column' => 'value1'
    ), $query->build());

    $query->add('some_column', 'value2');
    $this->assertEquals(array(
      'some_column' => array(
        'value1',
        'value2'
      )
    ), $query->build());
  }
}
{'fraction_non_alphanumeric': 0.18642241379310345, 'fraction_numerical': 0.005387931034482759, 'mean_word_length': 3.8385416666666665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4700963', 'n_tokens_mistral': 321, 'n_tokens_neox': 316, 'n_words': 49}