Ejemplo n.º 1
0
 /**
  * @param Minus $minus
  *
  * @return string
  */
 public function write(Minus $minus)
 {
     $first = $this->writer->write($minus->getFirst());
     $second = $this->writer->write($minus->getSecond());
     return $first . "\n" . Minus::MINUS . "\n" . $second;
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function itShouldGetMinusSelects()
 {
     $this->assertEquals(new Select('user'), $this->query->getFirst());
     $this->assertEquals(new Select('user_email'), $this->query->getSecond());
 }