Skip to content

Commit 44fc11d

Browse files
committed
Test enhancement
1 parent 8f543ed commit 44fc11d

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ php:
55
- 7.0
66
- 7.1
77
- 7.2
8+
- nightly
89

910
before_script:
1011
- composer self-update
@@ -15,4 +16,5 @@ script: phpunit
1516
matrix:
1617
allow_failures:
1718
- php: 5.6
19+
- php: nightly
1820
fast_finish: true

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@
1111
}
1212
],
1313
"autoload": {
14-
"psr-0": {
15-
"Svg\\": "src/"
14+
"psr-4": {
15+
"Svg\\": "src/Svg"
16+
}
17+
},
18+
"autoload-dev": {
19+
"psr-4": {
20+
"Svg\\Tests\\": "tests/Svg"
1621
}
1722
},
1823
"require": {
1924
"sabberworm/php-css-parser": "8.1.*"
2025
},
2126
"require-dev": {
22-
"phpunit/phpunit": "~5.0"
27+
"phpunit/phpunit": "^5.5|^6.5"
2328
}
2429
}

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
processIsolation="false"
1010
stopOnFailure="false"
1111
syntaxCheck="false"
12-
bootstrap="src/autoload.php"
12+
bootstrap="vendor/autoload.php"
1313
>
1414
<testsuites>
1515
<testsuite name="SVG lib test suite">

tests/Svg/StyleTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
namespace Svg\Tests;
1010

11-
include_once __DIR__ . "/../../src/autoload.php";
12-
1311
use Svg\Style;
1412

1513
class StyleTest extends \PHPUnit\Framework\TestCase

0 commit comments

Comments
 (0)