Changeset 159 for trunk/trax/test

Show
Ignore:
Timestamp:
03/01/06 16:44:16 (6 years ago)
Author:
haas
Message:

skeleton regression tests for all classes

Location:
trunk/trax/test
Files:
21 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/test/ActiveRecordTest.php

    r155 r159  
    759759                 "SELECT * FROM person_names WHERE first_name='Ben' ", 
    760760                 new DB_find_all_result); 
    761         $result = $p->find_by_first_name_and_last_name('Ben','Dover'); 
     761        $result = $p->find_by_first_name('Ben'); 
    762762        // Test find_by_first_name_and_last_name() 
    763763        $p = new PersonName; 
  • trunk/trax/test/InputFilterTest.php

    r156 r159  
    166166            $quoted_pattern = "a\\'b\\\"c\\\\de\\\nf\\\rg\\\x1ah"; 
    167167            $quoted_non_zero_pattern = "a\\'b\\\"c\\\\de\\\nf\\\rg\\\x1ah"; 
    168             echo "\nIf this fails it means mysql_real_escape_string() is broken: "; 
    169             $this->assertEquals(mysql_real_escape_string($non_zero_pattern), 
    170                                 $quoted_non_zero_pattern); 
    171             echo "\nIf this fails it means mysql_real_escape_string() is broken: "; 
    172             $this->assertEquals(mysql_real_escape_string($pattern), 
    173                                 $quoted_pattern); 
    174             $this->assertEquals( 
    175                    InputFilter::safeSQL($pattern,$rs),$quoted_pattern); 
     168//            echo "\nIf this fails it means mysql_real_escape_string() is broken: "; 
     169//            $this->assertEquals(mysql_real_escape_string($non_zero_pattern), 
     170//                                $quoted_non_zero_pattern); 
     171//            echo "\nIf this fails it means mysql_real_escape_string() is broken: "; 
     172//            $this->assertEquals(mysql_real_escape_string($pattern), 
     173//                                $quoted_pattern); 
     174//            $this->assertEquals( 
     175//                   InputFilter::safeSQL($pattern,$rs),$quoted_pattern); 
    176176        } 
     177        // Remove the following line when you complete this test. 
     178        throw new PHPUnit2_Framework_IncompleteTestError; 
    177179    } 
    178180} 
  • trunk/trax/test/runtests.php

    r155 r159  
    1313 */ 
    1414 
    15 //$tests = glob('*Test.php'); 
    1615//  Control order of tests 
    1716$tests = array( 
     17               'ActionControllerTest.php', 
     18               'ActionControllerErrorTest.php', 
     19               'ActionMailerTest.php', 
     20               'ActiveRecordTest.php', 
     21               'ActiveRecordErrorTest.php', 
     22               'ActiveRecordHelperTest.php', 
     23               'ApplicationControllerTest.php', 
     24               'ApplicationMailerTest.php', 
     25               'AssetTagHelperTest.php', 
     26               'DateHelperTest.php', 
     27               'DispatcherTest.php', 
     28               'FormHelperTest.php', 
     29               'FormOptionsHelperTest.php', 
     30               'FormTagHelperTest.php', 
     31               'HelpersTest.php', 
     32               'InflectorTest.php', 
    1833               'InputFilterTest.php', 
    19                'InflectorTest.php', 
    20                'ActiveRecordTest.php', 
     34               'JavaScriptHelperTest.php', 
     35               'RouterTest.php', 
     36               'ScaffoldControllerTest.php', 
     37               'SessionTest.php', 
     38               'TraxErrorTest.php', 
     39               'TraxGeneratorTest.php', 
     40               'UrlHelperTest.php', 
    2141               ); 
    2242