Search
 
SCRIPT & CODE EXAMPLE
 

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));
    }
}
Comment

PREVIOUS NEXT
Code Example
Php :: function default value 
Php :: group_concat mysql limit issue 
Php :: php mail template 
Php :: php convert array to json 
Php :: eloquent first 
Php :: laravel 6 make http request 
Php :: php key value array to string 
Php :: drupal 9 custom blocks dependency injection 
Php :: calculate age from date of birth in php 
Php :: secure random number php 
Php :: preg_replace allow spaces 
Php :: codeigniter validation text length 
Php :: laravel has many with ids 
Php :: casts laravel 
Php :: strpos php 
Php :: smarty switch case 
Php :: yii1 refresh cache schema 
Php :: laravel create many to many table 
Php :: apache use public folder as root 
Php :: Laravel run seed table 
Php :: install phpmyadmin ubuntu 18.04 
Php :: $ is not define 
Php :: Best Security tools for php 
Php :: laravel custom pagination 
Php :: empty in php 
Php :: php get first two paragraphs 
Php :: isset 
Php :: how to excluse csrf in a route laravel 
Php :: new order email filter woocommerce 
Php :: laravel relation with limit 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =