From c23604206cbc86f1acd5873909452567d932579f Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 23 Nov 2018 22:25:56 -0500 Subject: [PATCH] Autoload the test classes --- composer.json | 7 ++++++- test/ActivityPubTest.php | 7 +++---- test/{config => Config}/ArrayDataSet.php | 2 +- test/{config => Config}/SQLiteTestCase.php | 2 +- test/ObjectsServiceTest.php | 8 +++----- test/{config => }/bootstrap.php | 2 ++ test/{config => }/config.xml | 0 7 files changed, 16 insertions(+), 12 deletions(-) rename test/{config => Config}/ArrayDataSet.php (97%) rename test/{config => Config}/SQLiteTestCase.php (97%) rename test/{config => }/bootstrap.php (91%) rename test/{config => }/config.xml (100%) diff --git a/composer.json b/composer.json index 4dc61e4..d16722b 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "scripts": { - "test": "phpunit -c ./test/config/config.xml test", + "test": "phpunit -c ./test/config.xml test", "test-debug": "XDEBUG_CONFIG='idekey=ap_session' php ./vendor/bin/phpunit test" }, "repositories": [ @@ -33,6 +33,11 @@ "ActivityPub\\": "src/" } }, + "autoload-dev": { + "psr-4": { + "ActivityPub\\Test\\": "test/" + } + }, "config": { "sort-packages": true } diff --git a/test/ActivityPubTest.php b/test/ActivityPubTest.php index 279cf5e..21450d6 100644 --- a/test/ActivityPubTest.php +++ b/test/ActivityPubTest.php @@ -1,10 +1,9 @@