for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\Tests\ODM\CouchDB;
class ConfigurationTest extends CouchDBTestCase
{
public function testDocumentNamespace()
$config = new \Doctrine\ODM\CouchDB\Configuration();
$config->addDocumentNamespace('foo', 'Documents\Bar');
$this->assertEquals('Documents\Bar', $config->getDocumentNamespace('foo'));
$config->setDocumentNamespaces(array('foo' => 'Documents\Bar'));
$this->setExpectedException('Doctrine\ODM\CouchDB\CouchDBException');
$config->getDocumentNamespace('bar');
}