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)); }
public function testRequestMapper() { $ff = new FortissimoHarness(self::config); $ff->handleRequest('NonExistentRequestName'); $this->assertEquals('From Default', $ff->getContext()->get('mockCommand2')); }