/** * @depends testExtImpRules */ public function testIsAllowed() { $handler = RulesSensitiveToTheContext::getInstance(); $this->assertTrue($handler->isAllowed(1), "Rule should Allow"); $this->assertFalse($handler->isAllowed(2), "Rule should not Allow"); }