public function testLocateResourceIgnoresDirOnNonResource() {
$kernel = $this
->getKernel();
$kernel
->expects($this
->once())
->method('getBundle')
->will($this
->returnValue(array(
$this
->getBundle(__DIR__ . '/Fixtures/Bundle1Bundle'),
)));
$this
->assertEquals(__DIR__ . '/Fixtures/Bundle1Bundle/foo.txt', $kernel
->locateResource('@Bundle1Bundle/foo.txt', __DIR__ . '/Fixtures'));
}