Example #1
0
 public function testNotifiers()
 {
     $project = new Project('Twig Local');
     $this->assertEquals(array(), $project->getNotifiers());
     $project->addNotifier($notifier1 = $this->getMock('Sismo\\Notifier'));
     $this->assertSame(array($notifier1), $project->getNotifiers());
     $project->addNotifier($notifier2 = $this->getMock('Sismo\\Notifier'));
     $this->assertSame(array($notifier1, $notifier2), $project->getNotifiers());
 }