assertInstanceOf( FileFetcher::class, $instance ); } public function testFindByExtensionThrowsException() { $instance = new FileFetcher(); $this->expectException( '\RuntimeException' ); $instance->findByExtension( 'foo' ); } }