function testOfSynchronisationNecessary() { $source = dirname(__FILE__) . "/package/fr/synchronisation.xml"; $synchro = new PackagingSynchronisation($source); $this->assertEqual($synchro->revision(), "1672"); $this->assertEqual($synchro->sourceRevision(), "1671"); $this->assertEqual($synchro->sourceLang(), "en"); $this->assertEqual($synchro->lastSynchroRevision(), "1475"); $this->assertEqual($synchro->result(), "late"); }
public function testOfSynchronisationNecessary() { $source = dirname(__FILE__) . "/package/fr/synchronisation.xml"; $synchro = new PackagingSynchronisation($source); $this->assertEqual($synchro->revision(), "1672"); $this->assertEqual($synchro->sourceRevision(), "1671"); $this->assertEqual($synchro->sourceLang(), "en"); $this->assertEqual($synchro->lastSynchroRevision(), "1475"); $this->assertPattern("/style=\"color : red\"/", $synchro->result()); }