From f5e96b6af779a1c9fb7cc3acc012215bfcb66db1 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sat, 3 Oct 2015 10:59:44 -0500 Subject: [PATCH] Restructure tests --- composer.json | 3 +++ phpunit.xml.dist | 4 ++-- tests/bootstrap.php | 13 ------------- .../Number/DegradedNumberConverterTest.php | 5 +++-- .../Generator/RandomGeneratorFactoryTest.php | 5 +++-- tests/{ => src}/TestCase.php | 2 +- tests/{ => src}/UuidBcTag1_1_2Test.php | 0 tests/{ => src}/UuidFactoryTest.php | 5 ++++- tests/{ => src}/UuidTest.php | 5 ++++- 9 files changed, 20 insertions(+), 22 deletions(-) delete mode 100644 tests/bootstrap.php rename tests/{ => src}/Converter/Number/DegradedNumberConverterTest.php (80%) rename tests/{ => src}/Generator/RandomGeneratorFactoryTest.php (86%) rename tests/{ => src}/TestCase.php (97%) rename tests/{ => src}/UuidBcTag1_1_2Test.php (100%) rename tests/{ => src}/UuidFactoryTest.php (87%) rename tests/{ => src}/UuidTest.php (99%) diff --git a/composer.json b/composer.json index 216d008..3667c6b 100644 --- a/composer.json +++ b/composer.json @@ -50,6 +50,9 @@ "dev-master": "3.0.x-dev" } }, + "autoload-dev": { + "psr-4": {"Ramsey\\Uuid\\Test\\": "tests/src/"} + }, "replace": { "rhumsaa/uuid": "self.version" } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index dc63149..fe01ccd 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - ./tests + ./tests/src diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100644 index 7998a23..0000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,13 +0,0 @@ -addPsr4('Ramsey\\Uuid\\', __DIR__); diff --git a/tests/Converter/Number/DegradedNumberConverterTest.php b/tests/src/Converter/Number/DegradedNumberConverterTest.php similarity index 80% rename from tests/Converter/Number/DegradedNumberConverterTest.php rename to tests/src/Converter/Number/DegradedNumberConverterTest.php index 21c6def..a9a2a44 100644 --- a/tests/Converter/Number/DegradedNumberConverterTest.php +++ b/tests/src/Converter/Number/DegradedNumberConverterTest.php @@ -1,8 +1,9 @@