From 92e6db10c3fd5de650b4220bf67ebeef3eda30ab Mon Sep 17 00:00:00 2001 From: Nacho Salvador Date: Tue, 23 Aug 2016 13:28:38 +0200 Subject: [PATCH] Update to PSR-4 --- composer.json | 8 ++++---- phpunit.xml | 7 ++----- src/{Kata => }/Adder.php | 0 {src/Kata/Tests => tests}/AdderTest.php | 0 4 files changed, 6 insertions(+), 9 deletions(-) rename src/{Kata => }/Adder.php (100%) rename {src/Kata/Tests => tests}/AdderTest.php (100%) diff --git a/composer.json b/composer.json index eb4e272..c0a327c 100644 --- a/composer.json +++ b/composer.json @@ -5,9 +5,9 @@ "homepage": "https://github.com/carlosbuenosvinos/php-kata", "type": "library", "require-dev": { - "phpunit/phpunit": "3.7.*@dev", + "phpunit/phpunit": "5.5.*@dev", "mockery/mockery": "dev-master@dev", - "phpspec/phpspec": "2.0.*@dev" + "phpspec/phpspec": "3.0.*@dev" }, "license": "MIT", "authors": [ @@ -17,8 +17,8 @@ } ], "autoload": { - "psr-0": { - "Kata": "src/" + "psr-4": { + "Kata\\": "src/" } }, "config": { diff --git a/phpunit.xml b/phpunit.xml index a2bc6ce..b87d5b5 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -19,16 +19,13 @@ - ./src/Kata/Tests/ + ./tests/ - ./src/Kata/ - - ./src/Kata/*/Tests - + ./src/ \ No newline at end of file diff --git a/src/Kata/Adder.php b/src/Adder.php similarity index 100% rename from src/Kata/Adder.php rename to src/Adder.php diff --git a/src/Kata/Tests/AdderTest.php b/tests/AdderTest.php similarity index 100% rename from src/Kata/Tests/AdderTest.php rename to tests/AdderTest.php