コード例 #1
0
ファイル: FiniteExtension.php プロジェクト: AlloVince/Finite
 /**
  * @param object $object
  * @param string $graph
  *
  * @return array
  */
 public function getFiniteProperties($object, $graph = 'default')
 {
     return $this->context->getProperties($object, $graph);
 }
コード例 #2
0
 /**
  * @param StatefulInterface $object
  *
  * @return array
  */
 public function getFiniteProperties(StatefulInterface $object)
 {
     return $this->context->getProperties($object);
 }
コード例 #3
0
ファイル: ContextTest.php プロジェクト: Aasit/DISCOUNT--SRV-I
 public function testGetProperties()
 {
     $this->assertEquals(array('foo' => true, 'bar' => false), $this->object->getProperties($this->getObjectMock()));
 }
コード例 #4
0
ファイル: ContextTest.php プロジェクト: Rioji/Finite
 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')));
 }