From 1bc5e0c9da6a1b16f29d3c63638585087650b893 Mon Sep 17 00:00:00 2001 From: Jeremiah VALERIE Date: Sat, 9 Apr 2016 09:36:53 +0200 Subject: [PATCH] Use PSR-4 Autoloader for tests --- composer.json | 8 +++----- tests/Executor/AbstractTest.php | 6 +++--- tests/Executor/DirectivesTest.php | 3 ++- tests/Executor/ExecutorSchemaTest.php | 3 ++- tests/Executor/ExecutorTest.php | 3 ++- tests/Executor/ListsTest.php | 5 +++-- tests/Executor/MutationsTest.php | 3 ++- tests/Executor/NonNullTest.php | 3 ++- tests/Executor/TestClasses.php | 2 +- tests/Executor/UnionInterfaceTest.php | 3 ++- tests/Executor/VariablesTest.php | 3 ++- tests/Language/LexerTest.php | 5 ++++- tests/Language/ParserTest.php | 5 ++++- tests/Language/PrinterTest.php | 4 +++- tests/Language/VisitorTest.php | 4 +++- tests/StarWarsData.php | 2 +- tests/StarWarsIntrospectionTest.php | 4 +++- tests/StarWarsQueryTest.php | 4 +++- tests/StarWarsSchema.php | 3 ++- tests/StarWarsValidationTest.php | 2 +- tests/Type/DefinitionTest.php | 2 +- tests/Type/IntrospectionTest.php | 3 ++- tests/Type/ResolveInfoTest.php | 4 ++-- tests/Type/ScalarSerializationTest.php | 4 ++-- tests/Type/SchemaValidatorTest.php | 4 +++- tests/Validator/ArgumentsOfCorrectTypeTest.php | 2 +- tests/Validator/DefaultValuesOfCorrectTypeTest.php | 3 ++- tests/Validator/FieldsOnCorrectTypeTest.php | 3 ++- tests/Validator/FragmentsOnCompositeTypesTest.php | 2 +- tests/Validator/KnownArgumentNamesTest.php | 2 +- tests/Validator/KnownDirectivesTest.php | 2 +- tests/Validator/KnownFragmentNamesTest.php | 2 +- tests/Validator/KnownTypeNamesTest.php | 2 +- tests/Validator/NoFragmentCyclesTest.php | 2 +- tests/Validator/NoUndefinedVariablesTest.php | 2 +- tests/Validator/NoUnusedFragmentsTest.php | 2 +- tests/Validator/NoUnusedVariablesTest.php | 2 +- tests/Validator/OverlappingFieldsCanBeMergedTest.php | 2 +- tests/Validator/PossibleFragmentSpreadsTest.php | 2 +- tests/Validator/ProvidedNonNullArgumentsTest.php | 2 +- tests/Validator/ScalarLeafsTest.php | 2 +- tests/Validator/TestCase.php | 3 ++- tests/Validator/VariablesAreInputTypesTest.php | 4 ++-- tests/Validator/VariablesInAllowedPositionTest.php | 3 ++- 44 files changed, 82 insertions(+), 54 deletions(-) diff --git a/composer.json b/composer.json index ce92ac1..dabf1cd 100644 --- a/composer.json +++ b/composer.json @@ -23,10 +23,8 @@ } }, "autoload-dev": { - "classmap": [ - "tests/" - ], - "files": [ - ] + "psr-4": { + "GraphQL\\Tests\\": "tests/" + } } } diff --git a/tests/Executor/AbstractTest.php b/tests/Executor/AbstractTest.php index 378810f..3540256 100644 --- a/tests/Executor/AbstractTest.php +++ b/tests/Executor/AbstractTest.php @@ -1,8 +1,8 @@ assertEquals($expectedDefaultSelection, $actualDefaultSelection); $this->assertEquals($expectedDeepSelection, $actualDeepSelection); } -} \ No newline at end of file +} diff --git a/tests/Type/ScalarSerializationTest.php b/tests/Type/ScalarSerializationTest.php index 80ef84b..83af55d 100644 --- a/tests/Type/ScalarSerializationTest.php +++ b/tests/Type/ScalarSerializationTest.php @@ -1,5 +1,5 @@