public function testBooleanValue()
 {
     $expression = new ValueExpression();
     $expression->setValue(true);
     $this->assertEquals('true', QueryAssembler::stringify($expression));
     $expression->setValue(false);
     $this->assertEquals('false', QueryAssembler::stringify($expression));
 }
Exemplo n.º 2
0
 public function testGettersAndSetters()
 {
     $expression = new ValueExpression();
     $expression->setValue(1);
     $this->assertEquals(1, $expression->getValue());
 }