useful for testing.
Author: Rolf Vreijdenberger
Inheritance: extends Rule
Exemplo n.º 1
0
 public function testExceptionRule()
 {
     $rule = new ExceptionRule();
     try {
         $rule->applies();
         $this->fail('should not come here');
     } catch (Exception $e) {
         $this->assertEquals(Exception::CODE_GENERAL, $e->getCode());
     }
 }