public function testGetTagThrowsOnTypeDetectionFailure() { $tagger = new Tagger(); try { $tag = $tagger->getTag('myscript.gif'); $this->fail('Should throw ExtensionParsingException'); } catch (ExtensionParsingException $e) { $this->assertInstanceOf('JsPackager\\Exception\\ExtensionParsingException', $e); $this->assertEquals($e->getItemThatFailedToParse(), 'myscript.gif'); } }