/** * 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."); }
function assertGoodStatus(StatusValue $status, $msg) { $this->assertEquals(print_r([], 1), print_r($status->getErrors(), 1), $msg); }