Skip to content

Commit 80fdd50

Browse files
committed
Add autoload-dev to composer.json, use phpunit from composer instead of whatever travis has by default, remove redundant bootstrap/autoloader for tests
1 parent 30b0fac commit 80fdd50

File tree

5 files changed

+13
-33
lines changed

5 files changed

+13
-33
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before_script:
1414
- composer install --dev --prefer-source
1515

1616
script:
17-
- phpunit
17+
- ./vendor/bin/phpunit
1818
- ./vendor/bin/phpdoc
1919

2020
deploy:

composer.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
"description": "PHP development kit for prismic.io",
44

55
"autoload": {
6-
"psr-0": { "": "src/" }
6+
"psr-4": {
7+
"Prismic\\": "src/Prismic"
8+
}
9+
},
10+
"autoload-dev": {
11+
"psr-4": {
12+
"Prismic\\Test\\": "tests/Prismic"
13+
}
714
},
815

916
"license": "Apache 2 license",

phpunit.xml.dist

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true">
46
<testsuites>
57
<testsuite name="Prismic PHP SDK Test Suite">
68
<directory suffix="Test.php">./tests/Prismic/</directory>

tests/autoload.php.dist

-16
This file was deleted.

tests/bootstrap.php

-13
This file was deleted.

0 commit comments

Comments
 (0)