fail("Test left an error on the stack: " . CRT::error_name(CRT::last_error())); } } // Shim missing calls in older versions of PHPUnit public function __call($name, $arguments) { // shim expectException -> setExpectedException for PHPUnit 4.8.x if ($name == 'expectException') { $this->setExpectedException($arguments[0]); } } }