diff --git a/tests/test.php b/tests/test.php new file mode 100644 index 0000000..f9138d7 --- /dev/null +++ b/tests/test.php @@ -0,0 +1,34 @@ +pass('Expected results received'); + return; + } + + $iLen = count($aExpected); + for ($c = 0; $c < $iLen; $c++) { + if ($aReceived[$c] != $aExpected[$c]) { + $this->fail(sprintf("Failure. Expected %s, but got %s\n", $aExpected[$c], $aReceived[$c])); + } + } + } + + function assertEntity($oEntity, $sClass) { + if (is_a($oEntity, $sClass)) { + return $this->pass(sprintf('Object is a %s', $sClass)); + } + return $this->fail(sprintf('Object is not a %s', $sClass)); + } + + function assertGroup($oGroup) { + return $this->assertEntity($oGroup, 'Group'); + } +}