Ejemplo n.º 1
0
 public function testResourceSetCanGetAResourceChild()
 {
     $resource1 = new Resource();
     $this->resourceSet->addChild($resource1);
     $this->assertEquals($resource1, $this->resourceSet->getResource($resource1->getId()));
     $this->tester->assertThrows(function () {
         $this->resourceSet->getResource('reallyInvalidId');
     }, 'Exception', 'An exception as to be thrown.');
 }