diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-11 17:27:26 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-11 17:28:18 +0200 |
commit | 67413e3ada455793e82dc2a0c663fc7a31d9effe (patch) | |
tree | dd335b56ff142cff236ff3a0dba318e265d43816 /tests | |
parent | 4cef7f9d4b597d2f46843bd4381fdde81876058c (diff) | |
download | nextcloud-server-67413e3ada455793e82dc2a0c663fc7a31d9effe.tar.gz nextcloud-server-67413e3ada455793e82dc2a0c663fc7a31d9effe.zip |
Use assertNotSame when checking etags
Sometimes etags contain a "e" character which makes PHP believe it's a
number and make the tests fail
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/cache/changepropagator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/files/cache/changepropagator.php b/tests/lib/files/cache/changepropagator.php index 9beff27d50e..a52682cd086 100644 --- a/tests/lib/files/cache/changepropagator.php +++ b/tests/lib/files/cache/changepropagator.php @@ -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()); } } |