Changeset 159 for trunk/trax/test
- Timestamp:
- 03/01/06 16:44:16 (6 years ago)
- Location:
- trunk/trax/test
- Files:
-
- 21 added
- 3 modified
-
ActionControllerErrorTest.php (added)
-
ActionControllerTest.php (added)
-
ActionMailerTest.php (added)
-
ActiveRecordErrorTest.php (added)
-
ActiveRecordHelperTest.php (added)
-
ActiveRecordTest.php (modified) (1 diff)
-
ApplicationControllerTest.php (added)
-
ApplicationMailerTest.php (added)
-
AssetTagHelperTest.php (added)
-
DateHelperTest.php (added)
-
DispatcherTest.php (added)
-
FormHelperTest.php (added)
-
FormOptionsHelperTest.php (added)
-
FormTagHelperTest.php (added)
-
HelpersTest.php (added)
-
InputFilterTest.php (modified) (1 diff)
-
JavaScriptHelperTest.php (added)
-
RouterTest.php (added)
-
ScaffoldControllerTest.php (added)
-
SessionTest.php (added)
-
TraxErrorTest.php (added)
-
TraxGeneratorTest.php (added)
-
UrlHelperTest.php (added)
-
runtests.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/test/ActiveRecordTest.php
r155 r159 759 759 "SELECT * FROM person_names WHERE first_name='Ben' ", 760 760 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'); 762 762 // Test find_by_first_name_and_last_name() 763 763 $p = new PersonName; -
trunk/trax/test/InputFilterTest.php
r156 r159 166 166 $quoted_pattern = "a\\'b\\\"c\\\\de\\\nf\\\rg\\\x1ah"; 167 167 $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); 176 176 } 177 // Remove the following line when you complete this test. 178 throw new PHPUnit2_Framework_IncompleteTestError; 177 179 } 178 180 } -
trunk/trax/test/runtests.php
r155 r159 13 13 */ 14 14 15 //$tests = glob('*Test.php');16 15 // Control order of tests 17 16 $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', 18 33 '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', 21 41 ); 22 42
