Esempio n. 1
0
 public function testRetrievingWherePartsReturnsSpecificationArrayOfIdentifierAndArrayOfTypes()
 {
     $isNotNull = new IsNotNull();
     $isNotNull->setIdentifier('foo.bar');
     $expected = array(array($isNotNull->getSpecification(), array('foo.bar'), array(IsNotNull::TYPE_IDENTIFIER)));
     $this->assertEquals($expected, $isNotNull->getExpressionData());
 }
Esempio n. 2
0
 public function testCanPassIdentifierToConstructor()
 {
     $isnull = new IsNotNull('foo.bar');
     $this->assertEquals('foo.bar', $isnull->getIdentifier());
 }