예제 #1
0
 /**
  * @param GenericBuilder    $writer
  * @param PlaceholderWriter $placeholder
  */
 public function __construct(GenericBuilder $writer, PlaceholderWriter $placeholder)
 {
     $this->writer = $writer;
     $this->columnWriter = WriterFactory::createColumnWriter($this->writer, $placeholder);
 }
 /**
  * @test
  */
 public function itShouldCreateColumnWriter()
 {
     $writer = WriterFactory::createColumnWriter($this->writer, $this->placeholder);
     $this->assertSame('NilPortugues\\Sql\\QueryBuilder\\Builder\\Syntax\\ColumnWriter', \get_class($writer));
 }