Changeset 720 for trunk/tests/AppTest.php
- Timestamp:
- Mar 9, 2020 3:14:25 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/AppTest.php
r547 r720 54 54 { 55 55 $thisapp =& App::getInstance(); 56 $this->assertTrue( serialize($thisapp) === serialize($this->App), 'Objects do not match across instantiations.');56 $this->assertTrue($thisapp === $this->App, 'Objects do not match across instantiations.'); 57 57 } 58 58 … … 80 80 $this->App->stop(); 81 81 $this->App->start(); 82 83 82 $this->assertEquals(ini_get('error_reporting'), E_ALL, 'Error reporting not set to E_ALL.'); 84 $this->assertTrue($this->App->db->dbh && is_resource($this->App->db->dbh), 'DB handler not a resource');85 83 $this->assertTrue(isset($_SESSION), '$_SESSION is not set.'); 86 84 $_SESSION['sess_test_value'] = 'okay'; … … 115 113 $app =& App::getInstance(); 116 114 ob_start(); 117 $this->test_raisemsg(); //had to add this line for phpunit ver. 3.7 ///115 $this->test_raisemsg(); //had to add this line for phpunit ver. 3.7 118 116 $app->printraisedmessages(); 119 117 $result = ob_get_clean(); … … 137 135 { 138 136 $app =& App::getInstance(); 139 $_ GET['arg1'] = 'A';137 $_REQUEST['arg1'] = 'A'; 140 138 $result = $app->ohref('/some/url.php', array('arg1'), true); 141 139 $this->assertContains(session_name(), $result, 'SSID not found in URL.');
Note: See TracChangeset
for help on using the changeset viewer.