comicpress-core/test/ComicPressDBInterfaceTest.php

20 lines
486 B
PHP
Raw Normal View History

2009-10-20 01:41:55 +00:00
<?php
require_once('MockPress/mockpress.php');
require_once('PHPUnit/Framework.php');
2009-11-07 17:18:53 +00:00
require_once('ComicPressDBInterface.inc');
2009-10-20 01:41:55 +00:00
class ComicPressDBInterfaceTest extends PHPUnit_Framework_TestCase {
function testSingleton() {
$a = ComicPressDBInterface::get_instance();
$this->assertTrue(!isset($a->test));
$a->test = "test";
$this->assertEquals("test", $a->test);
$b = ComicPressDBInterface::get_instance();
$this->assertEquals("test", $b->test);
}
}
2009-11-15 15:37:43 +00:00
?>