]> src.bluestatic.org Git - isso.git/blob - UnitTest/AppTest.php
Add a test for the new Iterarator implementation in BSDBResult
[isso.git] / UnitTest / AppTest.php
1 <?php
2
3 require_once 'PHPUnit/Framework.php';
4
5
6 /**
7 * Application Test Suite
8 *
9 * @author Blue Static
10 * @copyright Copyright (c)2005 - 2008, Blue Static
11 * @package ISSO Tests
12 *
13 */
14 class AppTest extends PHPUnit_Framework_TestCase
15 {
16 public function setUp()
17 {
18 require_once ISSO . '/App.php';
19 }
20
21 public function testSetGetDebug()
22 {
23 BSApp::set_debug(true);
24 $this->assertSame(true, BSApp::get_debug());
25 }
26
27 public function testDebugList()
28 {
29 $this->assertEquals('<select><option>Debug Notices (0)</option></select>', BSApp::get_debug_list());
30
31 BSApp::debug('dbg');
32 $this->assertEquals('<select><option>Debug Notices (1)</option><option>--- dbg</option></select>', BSApp::get_debug_list());
33 }
34 }
35
36 ?>