public function testcheckRequiredParamsForArray_EmptyStringFilledWithSpaces() { $data = array('message' => ' '); $required = array('message' => 'message must be set'); $v = new Box_Validate(); $this->setExpectedException('\\Box_Exception', $required['message']); $v->checkRequiredParamsForArray($required, $data); }
}; $di['api_system'] = function () use($di) { return $di['api']('system'); }; $di['license'] = function () use($di) { $service = new Box_License(); $service->setDi($di); return $service; }; $di['tools'] = function () use($di) { $service = new Box_Tools(); $service->setDi($di); return $service; }; $di['validator'] = function () use($di) { $validator = new Box_Validate(); $validator->setDi($di); return $validator; }; $di['guzzle_client'] = function () { return new \Guzzle\Http\Client(); }; $di['mail'] = function () { return new Box_Mail(); }; $di['extension'] = function () use($di) { $extension = new \Box_Extension(); $extension->setDi($di); return $extension; }; $di['updater'] = function () use($di) {