コード例 #1
0
 public function testResource()
 {
     $resource = new CumulativeResource('test', new CumulativeResourceLoaderCollection());
     $resource->addFound('bundle', 'path');
     $this->assertEquals('test', $resource->getResource());
     $this->assertEquals('test', $resource->__toString());
     $this->assertTrue($resource->isFound('bundle', 'path'));
     $this->assertFalse($resource->isFound('bundle', 'path1'));
     $this->assertFalse($resource->isFound('bundle1', 'path'));
 }