Example #1
0
 /**
  * @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);
 }
Example #3
0
 public function testGetProperties()
 {
     $this->assertEquals(array('foo' => true, 'bar' => false), $this->object->getProperties($this->getObjectMock()));
 }
Example #4
0
 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')));
 }