Answers for "how to print on console with phpunit"

PHP
0

how to print on console with phpunit

class TestSomething extends PHPUnit_Framework_TestCase {
    function testSomething() {
        $myDebugVar = array(1, 2, 3);
        fwrite(STDERR, print_r($myDebugVar, TRUE));
    }
}
Posted by: Guest on June-10-2021

Code answers related to "how to print on console with phpunit"

Browse Popular Code Answers by Language