diff --git a/.gitattributes b/.gitattributes index 2931673..0d63469 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,3 +14,8 @@ phpunit.xml.dist export-ignore phpcs.xml export-ignore /.github export-ignore /tests export-ignore +phpstan.neon export-ignore +phpstan-baseline.neon export-ignore +psalm.xml export-ignore +psalm-baseline.xml export-ignore +run.sh export-ignore diff --git a/.phpunit.result.cache b/.phpunit.result.cache new file mode 100644 index 0000000..62c74f8 --- /dev/null +++ b/.phpunit.result.cache @@ -0,0 +1 @@ +{"version":1,"defects":{"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainDefaultToEntity":4,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainEntityType":4,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainObjectType":4,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainTableType":4,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainPluginEntity":4,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainPluginTable":4,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeOther":3,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testConstructorInvalidData":3,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testInvokeInvalid":3,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testMapInvalidPolicy":3,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testUnauthorizedHandlerSuppress":4,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testUnauthorizedHandlerRequireAuthz":4,"Authorization\\Test\\TestCase\\Middleware\\RequestAuthorizationMiddlewareTest::testInvokeService":4,"Authorization\\Test\\TestCase\\Middleware\\RequestAuthorizationMiddlewareTest::testInvokeServiceWithResult":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelFailure":3,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelActionEnabled":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelMapped":4,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\HandlerFactoryTest::testCreate":4,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyDefinedPluginEntityAppOveride":4,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyDefinedTable":4,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyQueryForDefinedTable":4,"Authorization\\Test\\TestCase\\Middleware\\RequestAuthorizationMiddlewareTest::testUnauthorizedHandlerSuppress":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeUnresolvedPolicy":3,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\CakeRedirectHandlerTest::testHandleRedirectWithBasePath":3,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyUnknownObject":3,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testNullUserCan":4,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testCan":4,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testCanWithResult":4,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testAuthorizationCheckedWithCan":4,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testCallingMagicCallPolicy":4,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeNull":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testNullIdentityForbiddenException":3,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testNullIdentityAllowed":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeFailedCheck":3,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeFailedCheckWithResult":3,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeFailedCheckStringResolver":3,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckImplicitAction":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckMappedAction":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckStringResolver":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessfulCheckWithResult":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckExplicitAction":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testCan":4,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testCanWithResult":4,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testMissingMethod":3,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testApplyScopeMethodMissing":3},"times":{"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testNullUserCan":0.004,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testCan":0.001,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testCanWithResult":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testAuthorizationCheckedWithCan":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testCallingMagicCallPolicy":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testAuthorizationCheckedWithApplyScope":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testSkipAuthorization":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testApplyScope":0.001,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testApplyScopeMethodMissing":0.001,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeFalse":0.004,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeTrue":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeNull":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeResultTrue":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeResultFalse":0,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testBeforeOther":0.001,"Authorization\\Test\\TestCase\\AuthorizationServiceTest::testMissingMethod":0,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainDefaultToEntity":0.043,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainEntityType":0.001,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainObjectType":0.001,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainTableType":0.001,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainPluginEntity":0.001,"Authorization\\Test\\TestCase\\Command\\PolicyCommandTest::testMainPluginTable":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testNullIdentityForbiddenException":0.002,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testNullIdentityAllowed":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeUnresolvedPolicy":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeFailedCheck":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeFailedCheckWithResult":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeFailedCheckStringResolver":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckImplicitAction":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckMappedAction":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckStringResolver":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessfulCheckWithResult":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testApplyScopeImplicitAction":0.003,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testApplyScopeMappedAction":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testApplyScopExplicitAction":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeSuccessCheckExplicitAction":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeBadIdentity":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelSuccess":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelFailure":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelAllDisabled":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelActionEnabled":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelMapped":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModelInvalid":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testImplementedEvents":0.001,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testImplementedCustom":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testSkipAuthorization":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testSkipAuthorizationBadService":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeNotSkipped":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeActionSkipped":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testCan":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testCanWithResult":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testAuthorizeModel":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testMapAction":0,"Authorization\\Test\\TestCase\\Controller\\Component\\AuthorizationComponentTest::testMapActions":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testConstructorAccepted with data set \"array\"":0.001,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testConstructorAccepted with data set \"ArrayAccess\"":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testConstructorAccepted with data set \"Entity\"":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testConstructorInvalidData":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testCanDelegation":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testApplyScopeDelegation":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testCall":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testCallArray":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testArrayAccessImplementation":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testGetOriginalData":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testGetOriginalDataWrappedObjectHasOriginalData":0,"Authorization\\Test\\TestCase\\IdentityDecoratorTest::testGetProperty":0,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testInvokeService":0.001,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testInvokeAuthorizationRequiredError":0.001,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testInvokeApp":0.001,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testInvokeInvalid":0,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testInvokeServiceWithIdentity":0.001,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testIdentityInstance":0,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testCustomIdentity":0,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testCustomIdentityDecorator":0,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testInvalidIdentity":0,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testUnauthorizedHandler":0,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testUnauthorizedHandlerSuppress":0.001,"Authorization\\Test\\TestCase\\Middleware\\AuthorizationMiddlewareTest::testUnauthorizedHandlerRequireAuthz":0.001,"Authorization\\Test\\TestCase\\Middleware\\RequestAuthorizationMiddlewareTest::testRuntimeExceptionWhenServiceIsMissing":0.001,"Authorization\\Test\\TestCase\\Middleware\\RequestAuthorizationMiddlewareTest::testInvokeService":0.001,"Authorization\\Test\\TestCase\\Middleware\\RequestAuthorizationMiddlewareTest::testInvokeServiceWithResult":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\CakeRedirectHandlerTest::testHandleRedirectionDefault":0.002,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\CakeRedirectHandlerTest::testHandleRedirectionNamed":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\CakeRedirectHandlerTest::testHandleRedirectionWithQuery":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\CakeRedirectHandlerTest::testHandleRedirectionNoQuery":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\CakeRedirectHandlerTest::testHandleRedirectWithBasePath":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\ExceptionHandlerTest::testHandle":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\HandlerFactoryTest::testCreate":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\HandlerFactoryTest::testCreateMissing":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\HandlerFactoryTest::testCreateInvalid":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirection":0.001,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionWithQuery":0.001,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionNoQuery":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionIgnoreNonIdempotentMethods with data set #0":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionIgnoreNonIdempotentMethods with data set #1":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionIgnoreNonIdempotentMethods with data set #2":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionIgnoreNonIdempotentMethods with data set #3":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionIgnoreNonIdempotentMethods with data set #4":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectionIgnoreNonIdempotentMethods with data set #5":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleRedirectWithBasePath":0,"Authorization\\Test\\TestCase\\Middleware\\UnauthorizedHandler\\RedirectHandlerTest::testHandleException":0.001,"Authorization\\Test\\TestCase\\Policy\\Exception\\MissingPolicyExceptionTest::testConstructQueryInstance":0.001,"Authorization\\Test\\TestCase\\Policy\\Exception\\MissingPolicyExceptionTest::testConstructAnotherInstance":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testGetPolicyClassName":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testGetPolicyObject":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testGetPolicyCallable":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testMapMissingResource":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testMapInvalidPolicy":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testMapMissingPolicy":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testGetPolicyPrimitive":0,"Authorization\\Test\\TestCase\\Policy\\MapResolverTest::testGetPolicyMissing":0,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyUnknownObject":0.004,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyUnknownEntity":0.001,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyDefinedEntity":0,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyDefinedPluginEntityAppOveride":0,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyDefinedPluginEntityPluginOveride":0.001,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyDefinedPluginEntity":0.001,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyDefinedTable":0.001,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyQueryForDefinedTable":0.001,"Authorization\\Test\\TestCase\\Policy\\OrmResolverTest::testGetPolicyUnknownTable":0.002,"Authorization\\Test\\TestCase\\Policy\\ResolverCollectionTest::testEmptyCollection":0,"Authorization\\Test\\TestCase\\Policy\\ResolverCollectionTest::testMissingPolicy":0.001,"Authorization\\Test\\TestCase\\Policy\\ResolverCollectionTest::testGetPolicy":0,"Authorization\\Test\\TestCase\\Middleware\\RequestAuthorizationMiddlewareTest::testUnauthorizedHandlerSuppress":0}} \ No newline at end of file