Changeset 3753

Show
Ignore:
Timestamp:
02/13/08 04:18:49 (17 months ago)
Author:
guilhermeblanco
Message:

Merged r3549 into 0.9 and 0.10 branches

Location:
branches
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/tests/DoctrineTest/UnitTestCase.php

    r3068 r3753  
    6161        } 
    6262    } 
     63 
     64    public function assertNull($expr) 
     65    { 
     66        if (is_null($expr)) { 
     67            $this->pass(); 
     68        } else { 
     69            $this->fail(); 
     70        } 
     71    } 
     72 
     73    public function assertNotNull($expr) 
     74    { 
     75        if (is_null($expr)) { 
     76            $this->fail(); 
     77        } else { 
     78            $this->pass(); 
     79        } 
     80    } 
     81 
    6382    public function pass()  
    6483    { 
  • branches/0.9/tests/DoctrineTest/UnitTestCase.php

    r3068 r3753  
    6161        } 
    6262    } 
     63 
     64    public function assertNull($expr) 
     65    { 
     66        if (is_null($expr)) { 
     67            $this->pass(); 
     68        } else { 
     69            $this->fail(); 
     70        } 
     71    } 
     72 
     73    public function assertNotNull($expr) 
     74    { 
     75        if (is_null($expr)) { 
     76            $this->fail(); 
     77        } else { 
     78            $this->pass(); 
     79        } 
     80    } 
     81 
    6382    public function pass()  
    6483    {