Пример #1
0
 /**
  * We know that every code in the map has a coresponding error level so
  * we can test that level and expect back that code
  * @return null
  */
 public function testMapLevel()
 {
     $map = $this->error->getMap();
     foreach ($map as $code => $level) {
         $code = $this->error->mapLevel($level);
         $this->assertEquals($map[$code], $level);
     }
     $level = 999999999;
     $this->assertFalse($this->error->mapLevel($level));
 }