Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 0a31703d3c
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.676 kB
<?php
set_time_limit(0);
// Do any setup stuff specific to your test suite here, e.g. setting up include
// paths, establish database connections.
//
// Here's the testing mojo ->
// adjust this to point to wherever ztest is located
require '../ztest.php';
$suite = new ztest\TestSuite("My application's unit tests");
// Recursively scan the 'test' directory and require() all PHP source files
$suite->require_all('test');
// Add non-abstract subclasses of ztest\TestCase as test-cases to be run
$suite->auto_fill();
// Create a reporter and enable color output
$reporter = new ztest\ConsoleReporter;
$reporter->enable_color();
// Go, go, go
$suite->run($reporter);
?>
Jump to Line
Something went wrong with that request. Please try again.