/** * @param object $object * @param string $graph * * @return array */ public function getFiniteProperties($object, $graph = 'default') { return $this->context->getProperties($object, $graph); }
/** * @param StatefulInterface $object * * @return array */ public function getFiniteProperties(StatefulInterface $object) { return $this->context->getProperties($object); }
public function testGetProperties() { $this->assertEquals(array('foo' => true, 'bar' => false), $this->object->getProperties($this->getObjectMock())); }
public function testGetProperties() { $this->accessor->expects($this->once())->method('getState')->will($this->returnValue('s1')); $this->assertEquals(array('foo' => true, 'bar' => false), $this->object->getProperties($this->getMock('Finite\\StatefulInterface'))); }