gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

ExceptionInSetUpTest.php (718B)


      1 <?php
      2 class ExceptionInSetUpTest extends PHPUnit_Framework_TestCase
      3 {
      4     public $setUp = FALSE;
      5     public $assertPreConditions = FALSE;
      6     public $assertPostConditions = FALSE;
      7     public $tearDown = FALSE;
      8     public $testSomething = FALSE;
      9 
     10     protected function setUp()
     11     {
     12         $this->setUp = TRUE;
     13         throw new Exception;
     14     }
     15 
     16     protected function assertPreConditions()
     17     {
     18         $this->assertPreConditions = TRUE;
     19     }
     20 
     21     public function testSomething()
     22     {
     23         $this->testSomething = TRUE;
     24     }
     25 
     26     protected function assertPostConditions()
     27     {
     28         $this->assertPostConditions = TRUE;
     29     }
     30 
     31     protected function tearDown()
     32     {
     33         $this->tearDown = TRUE;
     34     }
     35 }