public function testaddFundsInvalidDescription() { $modelClient = new \Model_Client(); $modelClient->loadBean(new \RedBeanPHP\OODBBean()); $modelClient->currency = 'USD'; $amount = '2.22'; $description = null; $clientService = new \Box\Mod\Client\Service(); $this->setExpectedException('\\Box_Exception', 'Funds description is not valid'); $result = $clientService->addFunds($modelClient, $amount, $description); $this->assertTrue($result); }