public function testAdd() { if ($this->userExists()) { $this->markTestSkipped("User: \"" . self::$userTest . "\" already exists. No need to add another."); } $result = null; $error = 0; $action = $this->userFactory->actionAdd(self::$userTest)->setPassword(md5("100costma100"))->setPasswordApi(md5("200costam200"))->setActive(true)->setLimit("5.5")->setPhonebook(true); $result = $action->execute(); /* @var $result \SMSApi\Api\Response\UserResponse */ if (empty($result)) { $error++; } echo "\nUserAdd:\n"; $this->renderUserItem($result); $this->assertEquals(0, $error); }