From 3e12b0df49c65e6907afcdc1d9a042107f90c4b0 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 18 Mar 2016 18:14:32 +0900 Subject: [PATCH] Replace test filename with totally nonexistent ones --- tests/unit/framework/StorageTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/framework/StorageTest.php b/tests/unit/framework/StorageTest.php index b2d66e381..0f19cf682 100644 --- a/tests/unit/framework/StorageTest.php +++ b/tests/unit/framework/StorageTest.php @@ -90,7 +90,7 @@ class StorageTest extends \Codeception\TestCase\Test $this->assertTrue(Rhymix\Framework\Storage::isReadable(__FILE__)); $this->assertTrue(Rhymix\Framework\Storage::isReadable(__DIR__)); $this->assertFalse(Rhymix\Framework\Storage::isReadable(__FILE__ . '.nonexistent.suffix')); - $this->assertFalse(Rhymix\Framework\Storage::isReadable('/etc/shadow')); + $this->assertFalse(Rhymix\Framework\Storage::isReadable('/dev/nonexistent')); } public function testIsWritable() @@ -103,7 +103,7 @@ class StorageTest extends \Codeception\TestCase\Test $this->assertTrue(Rhymix\Framework\Storage::isWritable($testfile)); $this->assertTrue(Rhymix\Framework\Storage::isWritable(dirname($testfile))); $this->assertFalse(Rhymix\Framework\Storage::isWritable($testfile . '.nonexistent.suffix')); - $this->assertFalse(Rhymix\Framework\Storage::isWritable('/dev/zero')); + $this->assertFalse(Rhymix\Framework\Storage::isWritable('/dev/nonexistent')); } public function testGetSize() @@ -111,7 +111,7 @@ class StorageTest extends \Codeception\TestCase\Test $this->assertEquals(filesize(__FILE__), Rhymix\Framework\Storage::getSize(__FILE__)); $this->assertFalse(Rhymix\Framework\Storage::getSize(__DIR__)); $this->assertFalse(Rhymix\Framework\Storage::getSize(__FILE__ . '.nonexistent.suffix')); - $this->assertFalse(Rhymix\Framework\Storage::getSize('/dev/null')); + $this->assertFalse(Rhymix\Framework\Storage::getSize('/dev/nonexistent')); } public function testRead() @@ -119,7 +119,7 @@ class StorageTest extends \Codeception\TestCase\Test $this->assertEquals(file_get_contents(__FILE__), Rhymix\Framework\Storage::read(__FILE__)); $this->assertFalse(Rhymix\Framework\Storage::read(__FILE__ . '.nonexistent.suffix')); $this->assertFalse(Rhymix\Framework\Storage::read(__DIR__)); - $this->assertFalse(Rhymix\Framework\Storage::read('/etc/shadow')); + $this->assertFalse(Rhymix\Framework\Storage::read('/dev/nonexistent')); } public function testWrite()