/** * @covers \phpDocumentor\Plugin\Scrybe\Template\Twig::getAssets */ public function testGetAssets() { $fixture = new Twig(''); $assets = $fixture->getAssets(); $this->assertInternalType('array', $assets); $this->assertGreaterThan(0, count($assets)); $this->assertInstanceOf('SplFileInfo', current($assets)); $this->assertStringStartsWith($fixture->getPath(), key($assets)); foreach (array_keys($assets) as $filename) { $this->assertStringEndsNotWith('.twig', $filename); } }