Support the ongoing development of Laravel.io →
Configuration Requests Testing

Hi,

Here is an example of my test:

        public function testCitizenService() {
            $response = $this->action('GET', 'QueryController@getIndex', array('service' => 'mx-citizen', 'strCurp' => '****'));
            
            $response = json_decode($response->getContent());
            
            $this->assertTrue((isset($response->result->lastName) && $response->result->lastName == 'VERA'));
        }

As you see, I'm quering the application during it and then check the response.

The case is, that in the command line it looks like this: too much output

All the internal queries which have place during the test are shown in the command line. I haven't done any additional configuration to ask the phpunit or laravel to do that, as I know.

The question is - how can I turn it off to have a clean test output?

Thanks

Last updated 2 years ago.
0

Ok, that was me at last.

my curl object was configured like:

curl_setopt($ch, CURLOPT_VERBOSE, 1);

turning it off makes the tests go silent.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.