From e1243a2376879cd1485fb3a8d0fa599c47515e06 Mon Sep 17 00:00:00 2001 From: travail Date: Fri, 9 Oct 2015 18:27:41 +0900 Subject: [PATCH] Move the test files --- tests/bootstrap.php | 3 --- tests/{ => unit}/AverageHashTest.php | 4 ++-- tests/{ => unit}/BasicTest.php | 6 +++--- tests/{ => unit}/DifferenceHashTest.php | 4 ++-- tests/{ => unit}/PerceptionHashTest.php | 4 ++-- 5 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 tests/bootstrap.php rename tests/{ => unit}/AverageHashTest.php (91%) rename tests/{ => unit}/BasicTest.php (82%) rename tests/{ => unit}/DifferenceHashTest.php (92%) rename tests/{ => unit}/PerceptionHashTest.php (92%) diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100644 index 6c8c4f5..0000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,3 +0,0 @@ -path_inuo1 = __DIR__ . '/images/inuo1.jpg'; - $this->path_inuo2 = __DIR__ . '/images/inuo2.jpg'; + $this->path_inuo1 = __DIR__ . '/../images/inuo1.jpg'; + $this->path_inuo2 = __DIR__ . '/../images/inuo2.jpg'; $this->hex_inuo1 = 'fdd7a9d1c383c1ff'; $this->hex_inuo2 = 'f7f30200c3c3c3ff'; $this->bin_inuo1 = '1111110111010111101010011101000111000011100000111100000111111111'; diff --git a/tests/BasicTest.php b/tests/unit/BasicTest.php similarity index 82% rename from tests/BasicTest.php rename to tests/unit/BasicTest.php index 17d6fc2..7314f4b 100644 --- a/tests/BasicTest.php +++ b/tests/unit/BasicTest.php @@ -7,9 +7,9 @@ class BasicTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->path_non_existent_inuo = __DIR__ . '/images/non_existent_inuo.jpg'; - $this->path_inuo1 = __DIR__ . '/images/inuo1.jpg'; - $this->path_inuo2 = __DIR__ . '/images/inuo2.jpg'; + $this->path_non_existent_inuo = __DIR__ . '/../images/non_existent_inuo.jpg'; + $this->path_inuo1 = __DIR__ . '/../images/inuo1.jpg'; + $this->path_inuo2 = __DIR__ . '/../images/inuo2.jpg'; $this->hex_inuo1 = 'fdd7a9d1c383c1ff'; $this->hex_inuo2 = 'f7f30200c3c3c3ff'; $this->bin_inuo1 = '1111110111010111101010011101000111000011100000111100000111111111'; diff --git a/tests/DifferenceHashTest.php b/tests/unit/DifferenceHashTest.php similarity index 92% rename from tests/DifferenceHashTest.php rename to tests/unit/DifferenceHashTest.php index 5efa03e..854ccdc 100644 --- a/tests/DifferenceHashTest.php +++ b/tests/unit/DifferenceHashTest.php @@ -7,8 +7,8 @@ class DifferenceHashTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->path_inuo1 = __DIR__ . '/images/inuo1.jpg'; - $this->path_inuo2 = __DIR__ . '/images/inuo2.jpg'; + $this->path_inuo1 = __DIR__ . '/../images/inuo1.jpg'; + $this->path_inuo2 = __DIR__ . '/../images/inuo2.jpg'; $this->hex_inuo1 = '4c58d4dcc9ed6c49'; $this->hex_inuo2 = '5978ac96d0555949'; $this->bin_inuo1 = '0100110001011000110101001101110011001001111011010110110001001001'; diff --git a/tests/PerceptionHashTest.php b/tests/unit/PerceptionHashTest.php similarity index 92% rename from tests/PerceptionHashTest.php rename to tests/unit/PerceptionHashTest.php index 0e6cd4f..d254d21 100644 --- a/tests/PerceptionHashTest.php +++ b/tests/unit/PerceptionHashTest.php @@ -7,8 +7,8 @@ class PerceptionHashTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->path_inuo1 = __DIR__ . '/images/inuo1.jpg'; - $this->path_inuo2 = __DIR__ . '/images/inuo2.jpg'; + $this->path_inuo1 = __DIR__ . '/../images/inuo1.jpg'; + $this->path_inuo2 = __DIR__ . '/../images/inuo2.jpg'; $this->hex_inuo1 = 'eacc911396406eb7'; $this->hex_inuo2 = 'b9f8910e89f44e43'; $this->bin_inuo1 = '1110101011001100100100010001001110010110010000000110111010110111';