How To Print On Console With Phpunit

[Solved] How To Print On Console With Phpunit | Php - Code Explorer | yomemimo.com
Question : how to print on console with phpunit

Answered by : blueeyed-booby-mmft5pkkhrpq

class TestSomething extends PHPUnit_Framework_TestCase { function testSomething() { $myDebugVar = array(1, 2, 3); fwrite(STDERR, print_r($myDebugVar, TRUE)); }
}

Source : https://stackoverflow.com/questions/7493102/how-to-output-in-cli-during-execution-of-php-unit-tests | Last Update : Thu, 17 Jun 21

Answers related to how to print on console with phpunit

Code Explorer Popular Question For Php