Changeset 266 for trunk/tests/element
- Timestamp:
- 07/31/05 04:45:47 (3 years ago)
- Files:
-
- trunk/tests/element/Base.php (modified) (2 diffs)
- trunk/tests/element/Convert.php (added)
- trunk/tests/element/Set.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tests/element/Base.php
r260 r266 30 30 } 31 31 32 protected function assertSameVerbose($expected, $result) { 33 34 try { 35 $this->assertTrue($expected == $result); 36 } catch(Exception $e) { 37 $lf = php_sapi_name() == 'cli' ? "\n" : '<br>'; 38 echo $lf . $lf; 39 echo 'expected was: ' . htmlentities($expected) . $lf; 40 echo 'result was: ' . htmlentities($result) . $lf . $lf; 41 throw($e); 42 } 43 } 44 32 45 static private $definitions = array( 33 46 'default' => array( … … 44 57 ), 45 58 ), 59 ), 60 ), 61 ), 62 'date' => array( 63 'date' => array( 64 'type' => 'Date', 65 'attributes' => array( 66 'display' => 'yes', 67 'edit' => 'yes', 68 'label' => 'date', 69 'presets' => 'no', 70 'dateformat' => 'Y-m-d' 46 71 ), 47 72 ),
