public function testAddExistantType() { $this->setExpectedException("Doctrine\\ODM\\CouchDB\\Types\\TypeException"); Type::addType('mixed', 'Doctrine\\ODM\\CouchDB\\Types\\MixedType'); }