public function testProject() { $sismo = new Sismo($this->getStorage(), $this->getBuilder()); $this->assertEquals(array(), $sismo->getProjects()); $this->assertFalse($sismo->hasProject('twig')); $sismo->addProject($project = new Project('Twig')); $this->assertTrue($sismo->hasProject('twig')); $this->assertSame($project, $sismo->getProject('twig')); $sismo->addProject($project1 = new Project('Silex')); $this->assertSame(array('twig' => $project, 'silex' => $project1), $sismo->getProjects()); }