PHP code example of ngyuki / phpunit-functions

1. Go to this page and download the library: Download ngyuki/phpunit-functions library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ngyuki / phpunit-functions example snippets


// normally
$this->assertThat($actual, $this->equalTo($expect));

// shorthand
assertThat($actual, equalTo($expect));

// I need to know location of Functions.php

// I need to know phar filename