Use assertNotSame when checking etags

Sometimes etags contain a "e" character which makes PHP believe it's a
number and make the tests fail
This commit is contained in:
Vincent Petry 2014-06-11 17:27:26 +02:00
parent 4cef7f9d4b
commit 67413e3ada

View file

@ -65,8 +65,8 @@ class ChangePropagator extends \PHPUnit_Framework_TestCase {
$this->assertEquals($newInfo2->getMTime(), $time);
$this->assertEquals($newInfo3->getMTime(), $time);
$this->assertNotEquals($oldInfo1->getEtag(), $newInfo1->getEtag());
$this->assertNotEquals($oldInfo2->getEtag(), $newInfo2->getEtag());
$this->assertNotEquals($oldInfo3->getEtag(), $newInfo3->getEtag());
$this->assertNotSame($oldInfo1->getEtag(), $newInfo1->getEtag());
$this->assertNotSame($oldInfo2->getEtag(), $newInfo2->getEtag());
$this->assertNotSame($oldInfo3->getEtag(), $newInfo3->getEtag());
}
}