Exemple #1
0
 public function testExistingDependencies()
 {
     $this->module->prepare(['cachePath' => __DIR__ . '/']);
     $this->module->cacheDependencies();
     $dependencies = unserialize(file_get_contents(__DIR__ . '/dependencies'));
     $this->assertArrayHasKey(__DIR__ . '/dependency.less', $dependencies);
     $this->assertArrayHasKey(__DIR__ . '/variables.less', $dependencies);
     $this->assertArrayHasKey(__DIR__ . '/mixins.less', $dependencies);
     $this->assertArrayHasKey(__DIR__ . '/test.less', $dependencies[__DIR__ . '/mixins.less']);
     $this->assertArrayHasKey(__DIR__ . '/mixins.less', $dependencies[__DIR__ . '/variables.less']);
     $this->assertArrayHasKey(__DIR__ . '/test.less', $dependencies[__DIR__ . '/dependency.less']);
     $this->assertArrayHasKey(__DIR__ . '/variables.less', $dependencies[__DIR__ . '/dependency.less']);
 }