diff --git a/composer-dev.json b/composer-dev.json index 98f22c6..d7ed219 100644 --- a/composer-dev.json +++ b/composer-dev.json @@ -23,13 +23,14 @@ "license": "EUPL-1.2", "type": "library", "autoload": { - "classmap": [ - "CloudRequestEngine.php", - "CloudRequestException.php", - "CloudEngine.php", - "Constants.php", - "HttpClient.php" - ] + "psr-4": { + "fiftyone\\pipeline\\cloudrequestengine\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "fiftyone\\pipeline\\cloudrequestengine\\tests\\": "tests/" + } }, "repositories": [ { diff --git a/composer.json b/composer.json index 5c9914b..28ecff6 100644 --- a/composer.json +++ b/composer.json @@ -22,17 +22,21 @@ ], "license": "EUPL-1.2", "type": "library", - "autoload": { - "classmap": [ - "CloudRequestEngine.php", - "CloudRequestException.php", - "CloudEngine.php", - "Constants.php", - "HttpClient.php" - ] - }, "require": { "51degrees/fiftyone.pipeline.engines": "4.*", "51degrees/fiftyone.pipeline.core": "4.*" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "autoload": { + "psr-4": { + "fiftyone\\pipeline\\cloudrequestengine\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "fiftyone\\pipeline\\cloudrequestengine\\tests\\": "tests/" + } } } diff --git a/phpunit.xml b/phpunit.xml index 7aabf15..a4a27d4 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,4 +1,4 @@ - + diff --git a/CloudEngine.php b/src/CloudEngine.php similarity index 99% rename from CloudEngine.php rename to src/CloudEngine.php index c9d341b..c0457b1 100644 --- a/CloudEngine.php +++ b/src/CloudEngine.php @@ -1,24 +1,24 @@ -LowerCaseArrayKeys($properties); + $properties = $this->lowerCaseArrayKeys($properties); $flowElementProperties = array(); diff --git a/CloudRequestException.php b/src/CloudRequestException.php similarity index 98% rename from CloudRequestException.php rename to src/CloudRequestException.php index 7e5ee30..c0e0821 100644 --- a/CloudRequestException.php +++ b/src/CloudRequestException.php @@ -1,24 +1,24 @@ -responseHeaders = $responseHeaders; } -} \ No newline at end of file +} diff --git a/Constants.php b/src/Constants.php similarity index 99% rename from Constants.php rename to src/Constants.php index 68ba427..6288518 100644 --- a/Constants.php +++ b/src/Constants.php @@ -1,24 +1,24 @@ -