Support the ongoing development of Laravel.io →
posted 10 years ago
Testing

Hi guys, I have this strange problem when i call the parent::setUp() on my TestCase class for unit test a class

when i run phpunit it throw me this error:

1) MatchRequestRepositoryTest::test_find_requests_by_match_id
ErrorException: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/project.dev/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:459)

What can be the problem? Thanks for any help.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

fenos fenos Joined 8 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.