Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
/** * Adding a "cannot" check using the closure structure */ public function testAddCannotCheckClosure() { $policy = new Policy(); $policy->cannot(function ($subject) { return false; }); $checks = $policy->getChecks(); $this->assertInstanceOf('\\Psecio\\PropAuth\\Check', $checks['closure'][0]); }