Ejemplo n.º 1
0
 public function setUp()
 {
     $this->mockMapper = new MockMapper();
     $this->parentController = new Controller($this->mockMapper);
     $this->parentController->setVocabulary('test', 'http://test.org/');
     $this->childController = new Controller($this->mockMapper);
     $this->mockTypeFactory = $this->getMockBuilder('Midgard\\CreatePHP\\Metadata\\RdfTypeFactory')->disableOriginalConstructor()->getMock();
     $this->mockTypeFactory->expects($this->any())->method('getTypeByRdf')->with('test')->will($this->returnValue($this->childController));
 }