Index: trunk/tests/AppTest.php
===================================================================
--- trunk/tests/AppTest.php	(revision 695)
+++ trunk/tests/AppTest.php	(revision 720)
@@ -54,5 +54,5 @@
     {
         $thisapp =& App::getInstance();
-        $this->assertTrue(serialize($thisapp) === serialize($this->App), 'Objects do not match across instantiations.');
+        $this->assertTrue($thisapp === $this->App, 'Objects do not match across instantiations.');
     }
 
@@ -80,7 +80,5 @@
         $this->App->stop();
         $this->App->start();
-
         $this->assertEquals(ini_get('error_reporting'), E_ALL, 'Error reporting not set to E_ALL.');
-        $this->assertTrue($this->App->db->dbh && is_resource($this->App->db->dbh), 'DB handler not a resource');
         $this->assertTrue(isset($_SESSION), '$_SESSION is not set.');
         $_SESSION['sess_test_value'] = 'okay';
@@ -115,5 +113,5 @@
         $app =& App::getInstance();
         ob_start();
-        $this->test_raisemsg();  //had to add this line for phpunit ver. 3.7 ///
+        $this->test_raisemsg();  //had to add this line for phpunit ver. 3.7
         $app->printraisedmessages();
         $result = ob_get_clean();
@@ -137,5 +135,5 @@
     {
         $app =& App::getInstance();
-        $_GET['arg1'] = 'A';
+        $_REQUEST['arg1'] = 'A';
         $result = $app->ohref('/some/url.php', array('arg1'), true);
         $this->assertContains(session_name(), $result, 'SSID not found in URL.');
Index: trunk/tests/FormValidatorTest.php
===================================================================
--- trunk/tests/FormValidatorTest.php	(revision 695)
+++ trunk/tests/FormValidatorTest.php	(revision 720)
@@ -4,5 +4,5 @@
  * For details visit the project site: <http://trac.strangecode.com/codebase/>
  * Copyright 2001-2012 Strangecode, LLC
- * 
+ *
  * This file is part of The Strangecode Codebase.
  *
@@ -11,10 +11,10 @@
  * Free Software Foundation, either version 3 of the License, or (at your option)
  * any later version.
- * 
+ *
  * The Strangecode Codebase is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  * details.
- * 
+ *
  * You should have received a copy of the GNU General Public License along with
  * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
@@ -97,24 +97,24 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = 'a non empty string';
+        $_REQUEST['some_field'] = 'a non empty string';
+        $this->FormValidator->notEmpty('some_field', _("Error message"));
+        $this->assertFalse($this->FormValidator->anyerrors());
+
+        // This one is an error!
+        $_REQUEST['some_field'] = '';
         $this->FormValidator->isempty('some_field', _("Error message"));
-        $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = '';
+        $this->assertTrue($this->FormValidator->anyerrors());
+    }
+
+    function test_isempty()
+    {
+        // This should not generate any error.
+        $_REQUEST['some_field'] = 'a non empty string';
         $this->FormValidator->isempty('some_field', _("Error message"));
-        $this->assertTrue($this->FormValidator->anyerrors());
-    }
-
-    function test_isempty()
-    {
-        // This should not generate any error.
-        $_POST['some_field'] = 'a non empty string';
+        $this->assertFalse($this->FormValidator->anyerrors());
+
+        // This one is an error!
+        $_REQUEST['some_field'] = '';
         $this->FormValidator->isempty('some_field', _("Error message"));
-        $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = '';
-        $this->FormValidator->isempty('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
     }
@@ -123,10 +123,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = 'this is a string';
+        $_REQUEST['some_field'] = 'this is a string';
         $this->FormValidator->isstring('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 12.3248; // not a string.
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 12.3248; // not a string.
         $this->FormValidator->isstring('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -136,10 +136,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = '1234.453';
+        $_REQUEST['some_field'] = '1234.453';
         $this->FormValidator->isnumber('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 'not a number';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'not a number';
         $this->FormValidator->isnumber('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -149,10 +149,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = '1234';
+        $_REQUEST['some_field'] = '1234';
         $this->FormValidator->isinteger('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = '1234.1';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = '1234.1';
         $this->FormValidator->isinteger('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -162,10 +162,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = '123.1234';
+        $_REQUEST['some_field'] = '123.1234';
         $this->FormValidator->isfloat('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 'some falsity';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'some falsity';
         $this->FormValidator->isfloat('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -175,10 +175,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = array('asdf', 123);
+        $_REQUEST['some_field'] = array('asdf', 123);
         $this->FormValidator->isarray('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 'some falsity';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'some falsity';
         $this->FormValidator->isarray('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -188,15 +188,15 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = '1234abcd';
+        $_REQUEST['some_field'] = '1234abcd';
         $this->FormValidator->checkregex('some_field', '/\d{4}[a-d]{4}/', true, _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This should not generate any error.
-        $_POST['some_field'] = 'no digits here';
+
+        // This should not generate any error.
+        $_REQUEST['some_field'] = 'no digits here';
         $this->FormValidator->checkregex('some_field', '/\d/', false, _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 'oops, a d1git';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'oops, a d1git';
         $this->FormValidator->checkregex('some_field', '/\d/', false, _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -206,10 +206,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = 'some truth';
+        $_REQUEST['some_field'] = 'some truth';
         $this->FormValidator->stringLength('some_field', 0, 255, _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 'some falsity';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'some falsity';
         $this->FormValidator->stringLength('some_field', 0, 4, _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -219,10 +219,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = '12';
+        $_REQUEST['some_field'] = '12';
         $this->FormValidator->numericrange('some_field', 3, 22, _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = '12';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = '12';
         $this->FormValidator->numericrange('some_field', 300, 2200, _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -232,10 +232,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = 'Quinn the Kook <quinn@strangecode.com>';
+        $_REQUEST['some_field'] = 'Quinn the Kook <quinn@strangecode.com>';
         $this->FormValidator->validateemail('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-                
-        // This one is an error!
-        $_POST['some_field'] = 'quinn@kook.com.';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'quinn@kook.com.';
         $this->FormValidator->validateemail('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -245,10 +245,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = '+1 (530) 555-1212';
+        $_REQUEST['some_field'] = '+1 (530) 555-1212';
         $this->FormValidator->validatephone('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 'd321/654*9875 ';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'd321/654*9875 ';
         $this->FormValidator->validatephone('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -258,10 +258,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = 'next tuesday';
+        $_REQUEST['some_field'] = 'next tuesday';
         $this->FormValidator->validatestrdate('some_field', _("Error message"));
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = 'in a galaxy far far away';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = 'in a galaxy far far away';
         $this->FormValidator->validatestrdate('some_field', _("Error message"));
         $this->assertTrue($this->FormValidator->anyerrors());
@@ -271,10 +271,10 @@
     {
         // This should not generate any error.
-        $_POST['some_field'] = '2323-2005-7766-3554';
+        $_REQUEST['some_field'] = '2323-2005-7766-3554';
         $this->FormValidator->validateccnumber('some_field', null);
         $this->assertFalse($this->FormValidator->anyerrors());
-        
-        // This one is an error!
-        $_POST['some_field'] = '1234 1234 1234 1234';
+
+        // This one is an error!
+        $_REQUEST['some_field'] = '1234 1234 1234 1234';
         $this->FormValidator->validateccnumber('some_field', null);
         $this->assertTrue($this->FormValidator->anyerrors());
Index: trunk/tests/VersionTest.php
===================================================================
--- trunk/tests/VersionTest.php	(revision 695)
+++ trunk/tests/VersionTest.php	(revision 720)
@@ -111,5 +111,5 @@
     {
         $result = $this->Version->create('test_user_tbl', 'user_id', '1', 'Test User', 'First version of user');
-        $this->assertSame(1, $result);
+        $this->assertSame('1', $result);
     }
 
