Skip to content

Commit

Permalink
Merge pull request #149 from gsteel/fix-autoloader-for-tests
Browse files Browse the repository at this point in the history
Tests not running under 7.1
  • Loading branch information
srenault authored Feb 14, 2018
2 parents 30b0fac + 80fdd50 commit 5670c79
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_script:
- composer install --dev --prefer-source

script:
- phpunit
- ./vendor/bin/phpunit
- ./vendor/bin/phpdoc

deploy:
Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"description": "PHP development kit for prismic.io",

"autoload": {
"psr-0": { "": "src/" }
"psr-4": {
"Prismic\\": "src/Prismic"
}
},
"autoload-dev": {
"psr-4": {
"Prismic\\Test\\": "tests/Prismic"
}
},

"license": "Apache 2 license",
Expand Down
6 changes: 4 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="./tests/bootstrap.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="Prismic PHP SDK Test Suite">
<directory suffix="Test.php">./tests/Prismic/</directory>
Expand Down
16 changes: 0 additions & 16 deletions tests/autoload.php.dist

This file was deleted.

13 changes: 0 additions & 13 deletions tests/bootstrap.php

This file was deleted.

0 comments on commit 5670c79

Please sign in to comment.