K
K
Kirill Gorelov2022-01-24 11:07:07
PHP
Kirill Gorelov, 2022-01-24 11:07:07

phpunit dump var_dump in test?

What doesn't work for me

print($properties);

        var_dump($properties);

        ob_end_clean();
        var_dump('something');
        ob_start();

        fwrite(STDERR, print_r('test', TRUE));

        fwrite(STDERR, 'tettsstts'."\n");

        fwrite(STDOUT, "__METHOD__" . "\n");

        $this->expectOutputString('bar');
        print 'baz';


Substituted different flags from the documentation, nothing helps ((
https://phpunit.readthedocs.io/ru/latest/textui.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
spaceatmoon, 2022-01-24
@spaceatmoon

You need xDebug.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question