Exemplo n.º 1
0
 public function testLogger()
 {
     $ff = new FortissimoHarness(self::config);
     $ff->logException();
     $logger = $ff->loggerManager()->getLoggerByName('fail');
     $this->assertNotNull($logger, 'Logger exists.');
     $this->assertEquals(1, count($logger->getMessages()));
 }
 public function testErrorToException()
 {
     $ff = new FortissimoHarness();
     $this->assertTrue($ff->hasRequest('div'), 'Command div exists?');
     $ff->handleRequest('div');
     $log = $ff->loggerManager()->getLoggerbyName('fail');
     $msgs = $log->getMessages();
     $this->assertEquals(1, count($msgs));
 }