/** * @depends testCreateDatabase */ public function testCreateDuplicateDatabaseThrowsException() { $this->setExpectedException('Doctrine\\CouchDB\\HTTP\\HTTPException', 'HTTP Error with status 412 occoured while requesting /' . $this->getTestDatabase() . '. Error: file_exists The database could not be created, the file already exists.'); $this->couchClient->createDatabase($this->getTestDatabase()); }