public function testDeclareClassNamespace()
 {
     $builder = new TestableOMBuilder2(new Table('fooTable'));
     $builder->declareClassNamespace('Foo');
     $this->assertEquals(array('' => array('Foo')), $builder->getDeclaredClasses());
     $builder->declareClassNamespace('Bar');
     $this->assertEquals(array('' => array('Foo', 'Bar')), $builder->getDeclaredClasses());
     $builder->declareClassNamespace('Foo');
     $this->assertEquals(array('' => array('Foo', 'Bar')), $builder->getDeclaredClasses());
     $builder = new TestableOMBuilder2(new Table('fooTable'));
     $builder->declareClassNamespace('Foo', 'Foo');
     $this->assertEquals(array('Foo' => array('Foo')), $builder->getDeclaredClasses());
     $builder->declareClassNamespace('Bar', 'Foo');
     $this->assertEquals(array('Foo' => array('Foo', 'Bar')), $builder->getDeclaredClasses());
     $builder->declareClassNamespace('Foo', 'Foo');
     $this->assertEquals(array('Foo' => array('Foo', 'Bar')), $builder->getDeclaredClasses());
     $builder->declareClassNamespace('Bar', 'Bar');
     $this->assertEquals(array('Foo' => array('Foo', 'Bar'), 'Bar' => array('Bar')), $builder->getDeclaredClasses());
 }
 /**
  * @expectedException \Propel\Generator\Exception\LogicException
  */
 public function testDeclareClassNamespaceDuplicateException()
 {
     $builder = new TestableOMBuilder2(new Table('fooTable'));
     $builder->declareClassNamespace('Bar');
     $builder->declareClassNamespace('Bar', 'Foo');
 }