diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-18 07:55:58 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-19 00:09:54 +0300 |
commit | 484cd7a3079f0165728b4391d1bbdd2d478e6bf0 (patch) | |
tree | 924b4fe3ec799f742a4b2b0e3b3e68afa2a5b618 /tests | |
parent | 4d90fb52de27912108c0ac6591b818e84a10403e (diff) |
Changed test assertion for clearer message
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/ServeStaticFileTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PHPUnit/Integration/ServeStaticFileTest.php b/tests/PHPUnit/Integration/ServeStaticFileTest.php index 299dcf0fc6..8eabd6a499 100644 --- a/tests/PHPUnit/Integration/ServeStaticFileTest.php +++ b/tests/PHPUnit/Integration/ServeStaticFileTest.php @@ -446,8 +446,8 @@ class ServeStaticFileTest extends \PHPUnit_Framework_TestCase clearstatcache(); // check the correct compressed file is created - $this->assertTrue(file_exists($this->getCompressedFileLocation() . '.' . PARTIAL_BYTE_START . '.' . PARTIAL_BYTE_END . ".deflate")); - $this->assertFalse(file_exists($this->getCompressedFileLocation() . ".gz")); + $this->assertFileExists($this->getCompressedFileLocation() . '.' . PARTIAL_BYTE_START . '.' . PARTIAL_BYTE_END . ".deflate"); + $this->assertFileNotExists($this->getCompressedFileLocation() . ".gz"); // check $partialResponse $expectedPartialContents = substr(file_get_contents(TEST_FILE_LOCATION), PARTIAL_BYTE_START, @@ -475,8 +475,8 @@ class ServeStaticFileTest extends \PHPUnit_Framework_TestCase clearstatcache(); // check the correct compressed file is created - $this->assertTrue(file_exists($this->getCompressedFileLocation() . ".deflate")); - $this->assertFalse(file_exists($this->getCompressedFileLocation() . ".gz")); + $this->assertFileExists($this->getCompressedFileLocation() . ".deflate"); + $this->assertFileNotExists($this->getCompressedFileLocation() . ".gz"); // check $fullResponse $this->assertEquals(file_get_contents(TEST_FILE_LOCATION), $fullResponse); |