Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bf6f9d8b2a
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.645 kb
<?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->assertEquals('Documents\Bar', $config->getDocumentNamespace('foo'));
$this->setExpectedException('Doctrine\ODM\CouchDB\CouchDBException');
$config->getDocumentNamespace('bar');
}
}
Jump to Line
Something went wrong with that request. Please try again.