From 467fed86261b83feff4a22d12be4b339741576e8 Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Mon, 24 Sep 2012 15:32:06 +0200 Subject: [PATCH] Relocate classes to VuFindTest namespace and source directory --- module/VuFind/src/{VuFind/Tests => VuFindTest}/DbTestCase.php | 2 +- .../src/{VuFind => VuFindTest}/RecordDriver/TestHarness.php | 4 ++-- module/VuFind/src/{VuFind/Tests => VuFindTest}/TestCase.php | 2 +- .../src/{VuFind/Tests => VuFindTest}/ViewHelperTestCase.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename module/VuFind/src/{VuFind/Tests => VuFindTest}/DbTestCase.php (99%) rename module/VuFind/src/{VuFind => VuFindTest}/RecordDriver/TestHarness.php (96%) rename module/VuFind/src/{VuFind/Tests => VuFindTest}/TestCase.php (99%) rename module/VuFind/src/{VuFind/Tests => VuFindTest}/ViewHelperTestCase.php (99%) diff --git a/module/VuFind/src/VuFind/Tests/DbTestCase.php b/module/VuFind/src/VuFindTest/DbTestCase.php similarity index 99% rename from module/VuFind/src/VuFind/Tests/DbTestCase.php rename to module/VuFind/src/VuFindTest/DbTestCase.php index b55a4599c15..99a9b9df700 100644 --- a/module/VuFind/src/VuFind/Tests/DbTestCase.php +++ b/module/VuFind/src/VuFindTest/DbTestCase.php @@ -26,7 +26,7 @@ * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/unit_tests Wiki */ -namespace VuFind\Tests; +namespace VuFindTest; /** * Abstract base class for PHPUnit database test cases. diff --git a/module/VuFind/src/VuFind/RecordDriver/TestHarness.php b/module/VuFind/src/VuFindTest/RecordDriver/TestHarness.php similarity index 96% rename from module/VuFind/src/VuFind/RecordDriver/TestHarness.php rename to module/VuFind/src/VuFindTest/RecordDriver/TestHarness.php index 8e0ceed187b..aa24f6e0258 100644 --- a/module/VuFind/src/VuFind/RecordDriver/TestHarness.php +++ b/module/VuFind/src/VuFindTest/RecordDriver/TestHarness.php @@ -25,7 +25,7 @@ * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/other_than_marc Wiki */ -namespace VuFind\RecordDriver; +namespace VuFindTest\RecordDriver; /** * Test harness for simulating record drivers (ignore outside of test suite!) @@ -36,7 +36,7 @@ namespace VuFind\RecordDriver; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/other_than_marc Wiki */ -class TestHarness extends AbstractBase +class TestHarness extends \VuFind\RecordDriver\AbstractBase { /** * Magic method to set/retrieve fields. diff --git a/module/VuFind/src/VuFind/Tests/TestCase.php b/module/VuFind/src/VuFindTest/TestCase.php similarity index 99% rename from module/VuFind/src/VuFind/Tests/TestCase.php rename to module/VuFind/src/VuFindTest/TestCase.php index 1f2fdcbb4dc..5bc2c84411a 100644 --- a/module/VuFind/src/VuFind/Tests/TestCase.php +++ b/module/VuFind/src/VuFindTest/TestCase.php @@ -27,7 +27,7 @@ * @link http://vufind.org/wiki/unit_tests Wiki */ -namespace VuFind\Tests; +namespace VuFindTest; /** * Abstract base class for PHPUnit test cases. diff --git a/module/VuFind/src/VuFind/Tests/ViewHelperTestCase.php b/module/VuFind/src/VuFindTest/ViewHelperTestCase.php similarity index 99% rename from module/VuFind/src/VuFind/Tests/ViewHelperTestCase.php rename to module/VuFind/src/VuFindTest/ViewHelperTestCase.php index d040a097d09..13e9507dc67 100644 --- a/module/VuFind/src/VuFind/Tests/ViewHelperTestCase.php +++ b/module/VuFind/src/VuFindTest/ViewHelperTestCase.php @@ -26,7 +26,7 @@ * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/unit_tests Wiki */ -namespace VuFind\Tests; +namespace VuFindTest; /** * Abstract base class for PHPUnit database test cases. -- GitLab