Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (31 sloc) 0.794 kb
<?php
require_once 'Autoload.php';
class UnitTest
{
public function setUp() {}
public function tearDown() {}
public function skip($message = null)
{
throw new SkippedTestException($message);
}
public function pass($message = null)
{
throw new PassedTestException($message);
}
public function fail($message = null)
{
throw new FailedTestException($message);
}
public function shouldBeEqual($one, $other)
{
if ($one != $other) {
throw new FailedTestException("$one does not equal $other");
}
}
public function shouldBeIdentical($one, $other)
{
if ($one !== $other) {
throw new FailedTestException("$one is not identical to $other");
}
}
}
Jump to Line
Something went wrong with that request. Please try again.