Commit Graph
5 Commits
Author SHA1 Message Date
samapraku 8a1718c606 Upgrade tests to PHPUnit 9 2020-08-18 21:12:03 +02:00
4Giedrius cadd1b3a3f All tests should cleanup using tearDown() function. It results in 20-30% speed up.
http://kriswallsmith.net/post/18029585104/faster-phpunit
2015-05-26 12:40:35 +03:00
Vaidas Lungis a473073ba0 replace di['api_request_data'] with di['array_get'] 2015-03-26 10:57:37 +02:00
Vaidas Lungis c172a80e3e create Box\Mod\Api\Request class and add it to DI
Similar to Box_Request.
Purpose - use it when need to get param item from api call request.

Instead of
$c1 = isset($data['custom_1']) ? $data['custom_1'] : NULL ;
Use
$ci = $this->di['api_request_data']->get('custom_1' [, $defaultValue]);

This way we can reduce nPath complexity
2015-03-19 15:32:01 +02:00
fordnox 5af4cc20d9 Initial release 2014-11-03 09:00:47 +02:00