Commit Graph

4 Commits

Author SHA1 Message Date
Maikel Linke
bd5eaf98aa Handle null or non-JSON result of cPanel UAPI
More unit testing. More documentation.
2016-12-10 08:45:08 +11:00
Maikel Linke
dd29ca1ee8 Correct decoding of JSON response
The old version assumed `json_decode` would return an associative array.
While it can do so if an extra option is specified, the default
behaviour is to return an object. Therefore, a successful password
change resulted in an error while parsing the response.

The new code is accessing the response as object instead. The method
is now covered by a unit test.
2016-12-08 23:35:43 +11:00
Aleksander Machniak
0ea079d604 dirname(__FILE__) -> __DIR__ 2014-10-13 14:41:55 +02:00
Aleksander Machniak
b005927f91 Add basic tests for plugins 2013-01-19 12:16:16 +01:00