import of Diogenes 0.9.18
[diogenes.git] / testing / InternalTest.php
diff --git a/testing/InternalTest.php b/testing/InternalTest.php
new file mode 100644 (file)
index 0000000..7635e6f
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+require_once 'PHPUnit.php';
+
+class InternalTest extends PHPUnit_TestCase
+{
+       function InternalTest($name)
+       {
+               $this->PHPUnit_TestCase($name);
+       }
+       
+       function testInternal()
+       {
+               $this->assertEquals('xyz', 'xyz');
+               $this->assertNull(NULL, "Aiee!  It's not null!");
+               $this->assertNotNull('notnull', "Aiee! It's null!");
+               $this->assertTrue(true, "Feck!  It's false!");
+
+/*             if (!method_exists($this, 'assertSubStr'))
+               {
+                       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");
+               }
+*/
+       }
+}
+