/** * @param object $object * @param string $property * @param string $graph * * @return bool */ public function hasFiniteProperty($object, $property, $graph = 'default') { return $this->context->hasProperty($object, $property, $graph); }
/** * @param StatefulInterface $object * @param string $property * * @return bool */ public function hasFiniteProperty(StatefulInterface $object, $property) { return $this->context->hasProperty($object, $property); }
public function testHasProperty() { $this->assertTrue($this->object->hasProperty($this->getObjectMock(), 'foo')); $this->assertFalse($this->object->hasProperty($this->getObjectMock(), 'baz')); }
public function testHasProperty() { $this->accessor->expects($this->exactly(2))->method('getState')->will($this->returnValue('s1')); $this->assertTrue($this->object->hasProperty($this->getMock('Finite\\StatefulInterface'), 'foo')); $this->assertFalse($this->object->hasProperty($this->getMock('Finite\\StatefulInterface'), 'baz')); }