| 1 | <?php |
| 2 | |
| 3 | require_once 'PHPUnit.php'; |
| 4 | |
| 5 | class InternalTest extends PHPUnit_TestCase |
| 6 | { |
| 7 | function InternalTest($name) |
| 8 | { |
| 9 | $this->PHPUnit_TestCase($name); |
| 10 | } |
| 11 | |
| 12 | function testInternal() |
| 13 | { |
| 14 | $this->assertEquals('xyz', 'xyz'); |
| 15 | $this->assertNull(NULL, "Aiee! It's not null!"); |
| 16 | $this->assertNotNull('notnull', "Aiee! It's null!"); |
| 17 | $this->assertTrue(true, "Feck! It's false!"); |
| 18 | |
| 19 | /* if (!method_exists($this, 'assertSubStr')) |
| 20 | { |
| 21 | die("You need a version of PHPUnit which supports assertSubStr. Apply\nassert.patch to your PHPUnit code. Hassle Matt if this makes no sense.\n"); |
| 22 | } |
| 23 | */ |
| 24 | } |
| 25 | } |
| 26 | |