/** * @expectedException \Stamplia\ApiException * @expectedExceptionCode 400 */ public function testInvalidLogin() { $client = new ApiClient(); $templates = $client->login(array('email' => '*****@*****.**', 'password' => 'nopassword')); $this->assertNotNull($templates); }