Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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));
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #console #phpunit
ADD COMMENT
Topic
Name
3+9 =