Skip to content

Commit 97a4cb8

Browse files
committed
Update tests suite, change namespaces, make it working
1 parent 5f80e05 commit 97a4cb8

21 files changed

+111
-110
lines changed

test/annotations/Package.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* <https://github.com/mindplay-dk/php-annotations>
1212
*/
1313

14-
namespace mindplay\test\annotations;
14+
namespace ElementaryFramework\Annotations\Demo\Annotations;
1515

1616

17-
use mindplay\annotations\AnnotationManager;
17+
use ElementaryFramework\Annotations\AnnotationManager;
1818

1919
abstract class Package
2020
{
2121
public static function register(AnnotationManager $annotationManager)
2222
{
23-
$annotationManager->registry['required'] = 'mindplay\test\annotations\RequiredAnnotation';
23+
$annotationManager->registerAnnotation('required', 'ElementaryFramework\Annotations\Demo\Annotations\RequiredAnnotation');
2424
}
2525
}

test/annotations/RequiredAnnotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* <https://github.com/mindplay-dk/php-annotations>
1212
*/
1313

14-
namespace mindplay\test\annotations;
14+
namespace ElementaryFramework\Annotations\Demo\Annotations;
1515

1616
/**
1717
* Specifies validation requiring a non-empty value.

test/annotations/ValidationAnnotationBase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* <https://github.com/mindplay-dk/php-annotations>
1212
*/
1313

14-
namespace mindplay\test\annotations;
14+
namespace ElementaryFramework\Annotations\Demo\Annotations;
1515

1616

17-
use mindplay\annotations\Annotation;
17+
use ElementaryFramework\Annotations\Annotation;
1818

1919
/**
20-
* Abstract base class for validation annotations.
20+
* Abstract base class for validation Annotations.
2121
*/
2222
abstract class ValidationAnnotationBase extends Annotation
2323
{

test/lib/Colors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace mindplay\test\lib;
2+
namespace ElementaryFramework\Annotations\Test\lib;
33

44

55
class Colors

test/lib/ResultPrinter/CliResultPrinter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
namespace mindplay\test\lib\ResultPrinter;
2+
namespace ElementaryFramework\Annotations\Test\lib\ResultPrinter;
33

44

5-
use mindplay\test\lib\Colors;
6-
use mindplay\test\lib\xTest;
7-
use mindplay\test\lib\xTestRunner;
5+
use ElementaryFramework\Annotations\Test\lib\Colors;
6+
use ElementaryFramework\Annotations\Test\lib\xTest;
7+
use ElementaryFramework\Annotations\Test\lib\xTestRunner;
88

99
class CliResultPrinter extends ResultPrinter
1010
{

test/lib/ResultPrinter/ResultPrinter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
2-
namespace mindplay\test\lib\ResultPrinter;
2+
namespace ElementaryFramework\Annotations\Test\lib\ResultPrinter;
33

44

5-
use mindplay\test\lib\xTest;
6-
use mindplay\test\lib\xTestRunner;
5+
use ElementaryFramework\Annotations\Test\lib\xTest;
6+
use ElementaryFramework\Annotations\Test\lib\xTestRunner;
77

88
abstract class ResultPrinter
99
{

test/lib/ResultPrinter/WebResultPrinter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
2-
namespace mindplay\test\lib\ResultPrinter;
2+
namespace ElementaryFramework\Annotations\Test\lib\ResultPrinter;
33

44

5-
use mindplay\test\lib\xTest;
6-
use mindplay\test\lib\xTestRunner;
5+
use ElementaryFramework\Annotations\Test\lib\xTest;
6+
use ElementaryFramework\Annotations\Test\lib\xTestRunner;
77

88
class WebResultPrinter extends ResultPrinter
99
{

test/lib/xTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
namespace mindplay\test\lib;
3-
use mindplay\test\lib\ResultPrinter\ResultPrinter;
2+
namespace ElementaryFramework\Annotations\Test\lib;
3+
use ElementaryFramework\Annotations\Test\lib\ResultPrinter\ResultPrinter;
44

55
/**
66
* A base class to support simple unit tests.

test/lib/xTestException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace mindplay\test\lib;
2+
namespace ElementaryFramework\Annotations\Test\lib;
33

44
/**
55
* The xTest::fail() method throws and catches this exception, in order to

test/lib/xTestRunner.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
namespace mindplay\test\lib;
2+
namespace ElementaryFramework\Annotations\Test\lib;
33

44

5-
use mindplay\test\lib\ResultPrinter\CliResultPrinter;
6-
use mindplay\test\lib\ResultPrinter\ResultPrinter;
7-
use mindplay\test\lib\ResultPrinter\WebResultPrinter;
5+
use ElementaryFramework\Annotations\Test\lib\ResultPrinter\CliResultPrinter;
6+
use ElementaryFramework\Annotations\Test\lib\ResultPrinter\ResultPrinter;
7+
use ElementaryFramework\Annotations\Test\lib\ResultPrinter\WebResultPrinter;
88

99
/**
1010
* This class implements a very simple test suite runner and code

0 commit comments

Comments
 (0)