How to test exception call 28/10/2014
Assert::exception(function () { $this->userManager->addUser('user','P455w0rd'); }, 'DuplicateEntryException'); --/
Assert::exception(function () {
$this->userManager->addUser('user','P455w0rd');
}, 'DuplicateEntryException');
--/