コード例 #1
0
ファイル: SismoTest.php プロジェクト: hyperlator/Sismo
 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());
 }