Show
Ignore:
Timestamp:
07/31/05 04:45:47 (3 years ago)
Author:
sfuchs
Message:

added unittests for [265] convertElement() and Element_Set

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tests/element/Base.php

    r260 r266  
    3030        } 
    3131 
     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 
    3245        static private $definitions = array( 
    3346            'default' => array( 
     
    4457                            ), 
    4558                        ), 
     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' 
    4671                    ), 
    4772                ),