public function testHasChanges() { $this->assertEquals(0, count($this->m->getMigrations())); $this->assertTrue($this->m->hasChanges()); $this->assertTrue($this->m->save()); $this->assertEquals(1, count($this->m->getMigrations())); $this->assertFalse($this->m->hasChanges()); $this->m = new Migration(new TestChanged(), $this->migrationPath); $this->m->setName('Test'); $this->assertTrue($this->m->hasChanges()); sleep(1); $this->assertTrue($this->m->save()); $this->assertEquals(2, count($this->m->getMigrations())); }