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()); }
public function testCanPassIdentifierToConstructor() { $isnull = new IsNotNull('foo.bar'); $this->assertEquals('foo.bar', $isnull->getIdentifier()); }