assertEqual($synchro->result(), "source");
$source = dirname(__FILE__)."/package/en/synchronisation.xml";
$synchro = new PackagingSynchronisation($source);
$this->assertEqual($synchro->result(), "source");
}
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());
}
}
class TestOfContentTransformationFromXMLToHTML extends UnitTestCase {
function testOfContentWithScriptAndUlTags() {
$file = dirname(__FILE__).'/package/script_and_ul.xml';
$source = simplexml_load_file($file, "SimpleTestXMLElement");
$content = $source->content();
$this->assertPattern('/