Answers for "phpunit print to console"

PHP
-1

php print to console

<script>
    console.log(<?= json_encode($foo); ?>);
</script>
Posted by: Guest on June-06-2020
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

Browse Popular Code Answers by Language