Skip to content

Commit 3248fa4

Browse files
committed
fix: Enable assertions in PHPUnit configuration for CI environment
1 parent c2f0167 commit 3248fa4

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
key: "phpstan-result-cache-${{ github.run_id }}"
6969

7070
- name: Run PHPUnit tests
71-
run: vendor/bin/phpunit --configuration=phpunit.xml.dist --testdox --colors=always
71+
run: php -d zend.assertions=1 vendor/bin/phpunit --configuration=phpunit.xml.dist --testdox --colors=always

phpunit.xml.dist

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
timeoutForMediumTests="10"
1313
timeoutForLargeTests="60"
1414
>
15-
<php>
16-
<!-- NOTE: アサーションを有効化(CI環境用) -->
17-
<ini name="assert.active" value="1"/>
18-
<ini name="assert.exception" value="1"/>
19-
<ini name="zend.assertions" value="1"/>
20-
</php>
21-
2215
<testsuites>
2316
<testsuite name="Unit">
2417
<directory suffix="Test.php">tests/Unit</directory>

0 commit comments

Comments
 (0)