Changeset 129 for branches/2.0singleton/tests
- Timestamp:
- May 26, 2006 9:40:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0singleton/tests/AppTest.php
r42 r129 79 79 { 80 80 $expected = 'My message'; 81 App::raiseMsg($expected, MSG_NOTICE, __FILE__, __LINE__);81 $app->raiseMsg($expected, MSG_NOTICE, __FILE__, __LINE__); 82 82 $msg = current($_SESSION[$this->App->app]['messages']); 83 83 $this->assertEquals($expected, $msg['message']); … … 87 87 { 88 88 ob_start(); 89 App::printraisedmessages();89 $app->printraisedmessages(); 90 90 $result = ob_get_clean(); 91 91 $this->assertContains('My message', $result, 'Raised message not found in output.'); … … 95 95 { 96 96 $file = $this->App->getParam('log_directory') . '/' . $this->App->getParam('log_filename'); 97 App::logMsg('Test log message', LOG_DEBUG, __FILE__, __LINE__);97 $app->logMsg('Test log message', LOG_DEBUG, __FILE__, __LINE__); 98 98 if ($result = file($file)) { 99 99 $result = end($result); … … 107 107 { 108 108 $_GET['arg1'] = 'A'; 109 $result = App::ohref('/some/url.php', array('arg1'), true);109 $result = $app->ohref('/some/url.php', array('arg1'), true); 110 110 $this->assertContains(session_name(), $result, 'SSID not found in URL.'); 111 111 $this->assertContains('arg1=A', $result, 'Argument not passed through.'); … … 115 115 { 116 116 ob_start(); 117 App::printhiddensession();117 $app->printhiddensession(); 118 118 $result = ob_get_clean(); 119 119 $this->assertContains(session_name(), $result); … … 122 122 // function test_dieurl() 123 123 // { 124 // App::dieURL('/die/to/this/url.php');124 // $app->dieURL('/die/to/this/url.php'); 125 125 // } 126 126 //
Note: See TracChangeset
for help on using the changeset viewer.