/** * @test */ public function test_update_sql_with_whenever_mode_permanently() { $w = new ChangeWatcher(self::daoRoot, WatchMode::Whenever()); $this->modifyDao(); $w->clear(); $route = basename(__DIR__) . '/fixtures/sql/SwitchDao'; $this->modifySql($route); $this->assertTrue($w->sqlOutdated($route)); $w->save(true); $this->assertFalse($w->sqlOutdated($route)); $w = new ChangeWatcher(self::daoRoot, WatchMode::Whenever()); $this->assertFalse($w->sqlOutdated($route)); $this->modifySql($route); $this->assertTrue($w->sqlOutdated($route)); }
public function saveHistory() { $this->watcher->save(); }