public function testAddArrayOfRepositories()
{
$registry = new RepositoryRegistry();
$a = $this->createRepositoryMock();
$b = $this->createRepositoryMock();
$registry->addRepositories(array('a' => $a, 'b' => $b));
$this->assertEquals(2, count($registry));
$this->assertTrue($registry->hasRepository('a'));
$this->assertTrue($registry->hasRepository('b'));
$this->assertFalse($registry->hasRepository('c'));
$this->assertSame($a, $registry->getRepository('a'));
$this->assertSame($b, $registry->getRepository('b'));
}