Skip to content

Commit f156e70

Browse files
authored
Merge pull request #39 from clue-labs/update-tests
Update test suite and report failed assertions
2 parents cdfd621 + f38b100 commit f156e70

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
php-version: ${{ matrix.php }}
3030
coverage: xdebug
31+
ini-file: development
3132
- run: composer install
3233
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
3334
if: ${{ matrix.php >= 7.3 }}

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@
1717
"react/http": "^1.6"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35"
20+
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.35"
2121
},
2222
"autoload": {
23-
"psr-4": { "Clue\\React\\EventSource\\": "src/" }
23+
"psr-4": {
24+
"Clue\\React\\EventSource\\": "src/"
25+
}
2426
},
2527
"autoload-dev": {
26-
"psr-4": { "Clue\\Tests\\React\\EventSource\\": "tests/" }
28+
"psr-4": {
29+
"Clue\\Tests\\React\\EventSource\\": "tests/"
30+
}
2731
}
2832
}

phpunit.xml.dist

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!-- PHPUnit configuration file with new format for PHPUnit 9.5+ -->
3+
<!-- PHPUnit configuration file with new format for PHPUnit 9.6+ -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
77
cacheResult="false"
88
colors="true"
@@ -19,5 +19,10 @@
1919
</coverage>
2020
<php>
2121
<ini name="error_reporting" value="-1" />
22+
<!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
23+
<!-- <ini name="zend.assertions" value="1" /> -->
24+
<ini name="assert.active" value="1" />
25+
<ini name="assert.exception" value="1" />
26+
<ini name="assert.bail" value="0" />
2227
</php>
2328
</phpunit>

phpunit.xml.legacy

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,12 @@
1515
<directory>./src/</directory>
1616
</whitelist>
1717
</filter>
18+
<php>
19+
<ini name="error_reporting" value="-1" />
20+
<!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
21+
<!-- <ini name="zend.assertions" value="1" /> -->
22+
<ini name="assert.active" value="1" />
23+
<ini name="assert.exception" value="1" />
24+
<ini name="assert.bail" value="0" />
25+
</php>
1826
</phpunit>

0 commit comments

Comments
 (0)