public function testSetLimit() { try { $this->config->set('only.two.allowed', 'smelly'); $this->assertFalse(true, 'No exception'); } catch (\RuntimeException $e) { $this->assertTrue(true, 'Exception was raised.'); } }