public function testCanFetchRelevantRules() { $repo = new RuleRepository($this->rules); $this->assertCount(1, $repo->getRelevantRules('read', 'Obj')); $repo->add(new Rule(true, 'read', 'Obj')); $this->assertCount(2, $repo->getRelevantRules('read', 'Obj')); }