/**
  * Test that the state is the callback return value
  */
 public function testItReturnCallback()
 {
     $authorization = new ContextAuthorization();
     $authorization->initialize($this->context, function () {
         return true;
     });
     $authorization->resolve();
     $authorization->afterResolve();
     $this->assertTrue($authorization->state());
     $this->assertTrue($authorization->value());
     $authorization->initialize($this->context, function () {
         return false;
     });
     $authorization->resolve();
     $authorization->afterResolve();
     $this->assertFalse($authorization->state());
     $this->assertFalse($authorization->value());
 }