Skip to content

Commit 1c4af33

Browse files
authored
Fix PHPUnit bool server consts result in null (laravel#5409)
After updating to Laravel 8 I suddenly had my test suite failing because telescope would not be disabled properly by `phpunit.xml` anymore. This changes fixed my test suite. I've also created a clean Laravel 8 project and added some tests to demonstrate the issue: hettiger/laravel-env-demo@908d340 Maybe this needs to be addressed in PHPUnit. However I'm adding this workaround here because it's a viable solution IMHO. Maybe should add a note on this in the docs and be done with it…?
1 parent ca30159 commit 1c4af33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
<server name="MAIL_MAILER" value="array"/>
2727
<server name="QUEUE_CONNECTION" value="sync"/>
2828
<server name="SESSION_DRIVER" value="array"/>
29-
<server name="TELESCOPE_ENABLED" value="false"/>
29+
<server name="TELESCOPE_ENABLED" value="(false)"/>
3030
</php>
3131
</phpunit>

0 commit comments

Comments
 (0)