PHP Classes

File: tests/test.php

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   PHP Convert Base36   tests/test.php   Download  
File: tests/test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Convert Base36
Encode and decode data using Base36 encoding
Author: By
Last change:
Date: 4 years ago
Size: 444 bytes
 

Contents

Class file image Download
<?php

// Debug from console
// set XDEBUG_CONFIG="idekey=netbeans-xdebug"
// php test.php

require_once __DIR__ . '/../vendor/autoload.php';

$phpunit = new \PHPUnit\TextUI\TestRunner();

try {
    echo
"<pre>\n";
   
$testResults = $phpunit->doRun($phpunit->getTest(__DIR__, '', 'Test.php'), array(), false);
    echo
"</pre>\n";
} catch (\
PHPUnit\Framework\Exception $e) {
    print
$e->getMessage() . "\n";
    echo
"Unit tests failed.";
}