/** * @dependsOn testRebuildDontBuild */ public function testReBuildRebuild() { $GLOBALS['phpunit'] = $this; $GLOBALS['builded'] = false; $this->touch(__DIR__ . '/tasks/one.php'); $bar = [new Stdclass()]; $build = new crodas\Build(__DIR__); $this->assertTrue(is_file($build->build1([__FILE__, __DIR__], $bar))); $this->assertTrue($GLOBALS['builded']); $build->save(); }