/** * @expectedException common_exception_InconsistentData */ public function testHasBadLevel() { $logger = new TestLogger(); $logger->has('BAD_LEVEL', 'testMessage'); }
public function testConstructPluginsInactive() { $testLogger = new TestLogger(); new TestFeatureWithCustomLogger('myId', ['inactive'], true, $this->getTestPluginService()->getAllPlugins(), $testLogger); $this->assertTrue($testLogger->has(LogLevel::WARNING, 'Cannot include inactive plugin inactive in test runner feature myId')); }