public function testExtractByFileNameConventional() { $bundlesConfig = dirname(__FILE__) . '/../../configs/bundles.yml'; $path = new ProjectPath(dirname(__FILE__) . '/Bundle/project/'); $bundlePath = dirname(__FILE__) . '/Bundle/bundles/processor.test.tgz'; $bundle = new Bundle($bundlePath, new Config($bundlesConfig)); $this->assertSame($bundle->getInputFile(), $bundlePath); @unlink($path . '/plugins/Processor/Test.php'); @unlink($path . '/plugins/Site/View/Test.php'); $this->assertFalse(file_exists($path . '/plugins/Processor/Test.php')); $this->assertFalse(file_exists($path . '/plugins/Site/View/Test.php')); $bundle->extractTo($path); $this->assertTrue(file_exists($path . '/plugins/Processor/Test.php')); $this->assertTrue(file_exists($path . '/plugins/Site/View/Test.php')); @unlink($path . '/plugins/Processor/Test.php'); @unlink($path . '/plugins/Site/View/Test.php'); }