]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use assertNotSame when checking etags
authorVincent Petry <pvince81@owncloud.com>
Wed, 11 Jun 2014 15:27:26 +0000 (17:27 +0200)
committerVincent Petry <pvince81@owncloud.com>
Wed, 11 Jun 2014 15:28:18 +0000 (17:28 +0200)
Sometimes etags contain a "e" character which makes PHP believe it's a
number and make the tests fail

tests/lib/files/cache/changepropagator.php

index 9beff27d50eac29da4bb4ccc44e01a7605d1cff9..a52682cd0861c5c44c0a59cebe4e16e0f03c8988 100644 (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());
        }
 }