Esempio n. 1
0
 /**
  * Backwards compatibility logic
  *
  * @param string $name
  */
 function __get($name)
 {
     if ($name === 'ok') {
         return $this->sv->isOK();
     } elseif ($name === 'errors') {
         return $this->sv->getErrors();
     }
     throw new Exception("Cannot get '{$name}' property.");
 }
Esempio n. 2
0
 function assertGoodStatus(StatusValue $status, $msg)
 {
     $this->assertEquals(print_r([], 1), print_r($status->getErrors(), 1), $msg);
 }