From b139b2a284c4ef91d473a57b30ccc1a81a75322a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kucha=C5=99?= <honza.kuchar@grifart.cz> Date: Sat, 21 May 2016 13:38:10 +0200 Subject: [PATCH] Fixed namespace of tests --- .idea/cursor.iml | 7 +++++-- tests/Cursor/CursorTest.phpt | 2 +- tests/Cursor/ICursorTest.php | 4 ++-- tests/Cursor/PostgresCursorTest.phpt | 2 +- tests/Cursor/SemanticCursorIntegration.phpt | 4 ++-- tests/Cursor/SemanticCursorTest.phpt | 4 ++-- tests/Cursor/TrackedCursorTest.phpt | 2 +- 7 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.idea/cursor.iml b/.idea/cursor.iml index fb11120..4662101 100644 --- a/.idea/cursor.iml +++ b/.idea/cursor.iml @@ -3,8 +3,8 @@ <component name="NewModuleRootManager"> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/vendor/nette/tester/src" isTestSource="false" packagePrefix="Tester" /> - <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" packagePrefix="Grifart\Mappi\Store" generated="true" /> - <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" packagePrefix="Grifart\Mappi\Tests\Store" generated="true" /> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" packagePrefix="Grifart\Mappi\Cursor" generated="true" /> + <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" packagePrefix="Grifart\Mappi\Tests" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/vendor/mockery/mockery/tests" isTestSource="true" packagePrefix="test" /> <sourceFolder url="file://$MODULE_DIR$/vendor/dibi/dibi/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/vendor/hamcrest/hamcrest-php/tests" isTestSource="true" /> @@ -12,6 +12,9 @@ <sourceFolder url="file://$MODULE_DIR$/vendor/mockery/mockery/library" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/vendor/mockery/mockery/tests" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/vendor/mockery/mockery/tests/Mockery/Test" isTestSource="true" packagePrefix="Mockery" /> + <sourceFolder url="file://$MODULE_DIR$/vendor/marc-mabe/php-enum/tests" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/vendor/tracy/tracy/src" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/vendor/tracy/tracy/src" isTestSource="false" packagePrefix="Tracy" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> diff --git a/tests/Cursor/CursorTest.phpt b/tests/Cursor/CursorTest.phpt index 360a1b0..e6f165e 100644 --- a/tests/Cursor/CursorTest.phpt +++ b/tests/Cursor/CursorTest.phpt @@ -3,7 +3,7 @@ * @testCase */ -namespace Grifart\Mappi\Tests\Store\Cursor; +namespace Grifart\Mappi\Tests\Cursor; use Grifart\Mappi\Cursor\Cursor; use Grifart\Mappi\Cursor\Driver\ArrayCursorDriver; diff --git a/tests/Cursor/ICursorTest.php b/tests/Cursor/ICursorTest.php index 5c45a82..9749ae5 100644 --- a/tests/Cursor/ICursorTest.php +++ b/tests/Cursor/ICursorTest.php @@ -3,7 +3,7 @@ * @testCase */ -namespace Grifart\Mappi\Tests\Store\Cursor; +namespace Grifart\Mappi\Tests\Cursor; use Grifart\Mappi\Cursor\ICursor; use Grifart\Mappi\Tests\Store\BaseTest; @@ -15,7 +15,7 @@ use Tester\Assert; * This file is using Given-When-Then naming convention. * @link http://martinfowler.com/bliki/GivenWhenThen.html * - * @package Grifart\Mappi\Tests\Store\Cursor + * @package Grifart\Mappi\Tests\Cursor */ abstract class ICursorTest extends BaseTest { diff --git a/tests/Cursor/PostgresCursorTest.phpt b/tests/Cursor/PostgresCursorTest.phpt index cd4444b..97e8a0c 100644 --- a/tests/Cursor/PostgresCursorTest.phpt +++ b/tests/Cursor/PostgresCursorTest.phpt @@ -3,7 +3,7 @@ * @testCase */ -namespace Grifart\Mappi\Tests\Store\Cursor; +namespace Grifart\Mappi\Tests\Cursor; use Dibi\DriverException; use Grifart\Mappi\Cursor\Driver\PostgresCursorFactory; diff --git a/tests/Cursor/SemanticCursorIntegration.phpt b/tests/Cursor/SemanticCursorIntegration.phpt index 95dc3e0..b343ec8 100644 --- a/tests/Cursor/SemanticCursorIntegration.phpt +++ b/tests/Cursor/SemanticCursorIntegration.phpt @@ -3,7 +3,7 @@ * @testCase */ -namespace Grifart\Mappi\Tests\Store\Cursor; +namespace Grifart\Mappi\Tests\Cursor; use Grifart\Mappi\Cursor\Cursor; use Grifart\Mappi\Cursor\Driver\ArrayCursorDriver; @@ -17,7 +17,7 @@ require_once __DIR__ . "/ICursorTest.php"; * Behavioral test for SemanticCursor using mocking. * @link http://docs.mockery.io/en/latest/ * - * @package Grifart\Mappi\Tests\Store\Cursor + * @package Grifart\Mappi\Tests\Cursor */ class SemanticCursorIntegrationTest extends ICursorTest { diff --git a/tests/Cursor/SemanticCursorTest.phpt b/tests/Cursor/SemanticCursorTest.phpt index 329f7ed..fc3bb3c 100644 --- a/tests/Cursor/SemanticCursorTest.phpt +++ b/tests/Cursor/SemanticCursorTest.phpt @@ -3,7 +3,7 @@ * @testCase */ -namespace Grifart\Mappi\Tests\Store\Cursor; +namespace Grifart\Mappi\Tests\Cursor; use Grifart\Mappi\Cursor\CursorException; use Grifart\Mappi\Cursor\ICursor; @@ -19,7 +19,7 @@ require_once __DIR__ . "/ICursorTest.php"; * Behavioral test for SemanticCursor using mocking. * @link http://docs.mockery.io/en/latest/ * - * @package Grifart\Mappi\Tests\Store\Cursor + * @package Grifart\Mappi\Tests\Cursor */ class SemanticCursorTest extends BaseTest { diff --git a/tests/Cursor/TrackedCursorTest.phpt b/tests/Cursor/TrackedCursorTest.phpt index cc6b98f..5704735 100644 --- a/tests/Cursor/TrackedCursorTest.phpt +++ b/tests/Cursor/TrackedCursorTest.phpt @@ -6,7 +6,7 @@ // TODO: moveBy() ->isOnRecord() ->moveBy() ->isOnRecord() (now I see state before and after command) // TODO: Maybe construct Cursor class in TrackedCursor constructor? -namespace Grifart\Mappi\Tests\Store\Cursor; +namespace Grifart\Mappi\Tests\Cursor; use Grifart\Mappi\Cursor\Cursor; use Grifart\Mappi\Cursor\CursorPosition; -- GitLab