Add basic test-framework #7
php.yml
on: push
Annotations
7 errors and 10 warnings
MissingClassConstType:
src/Decorators/HttpClientDecorator.php#L16
src/Decorators/HttpClientDecorator.php:16:18: MissingClassConstType: Class constant "SimpleSAML\OpenID\Decorators\HttpClientDecorator::DEFAULT_HTTP_CLIENT_CONFIG" should have a declared type. (see https://psalm.dev/359)
|
Quality control
Process completed with exit code 2.
|
InvalidArgument:
tests/src/Factories/AlgorithmManagerFactoryTest.php#L54
tests/src/Factories/AlgorithmManagerFactoryTest.php:54:33: InvalidArgument: Argument 1 of SimpleSAML\OpenID\Factories\AlgorithmManagerFactory::build expects SimpleSAML\OpenID\SupportedAlgorithms, but PHPUnit\Framework\MockObject\MockObject provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/src/Factories/CacheDecoratorFactoryTest.php#L43
tests/src/Factories/CacheDecoratorFactoryTest.php:43:33: InvalidArgument: Argument 1 of SimpleSAML\OpenID\Factories\CacheDecoratorFactory::build expects Psr\SimpleCache\CacheInterface, but PHPUnit\Framework\MockObject\MockObject provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/src/Factories/HttpClientDecoratorFactoryTest.php#L40
tests/src/Factories/HttpClientDecoratorFactoryTest.php:40:33: InvalidArgument: Argument 1 of SimpleSAML\OpenID\Factories\HttpClientDecoratorFactory::build expects GuzzleHttp\Client|null, but PHPUnit\Framework\MockObject\MockObject provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/src/Factories/JwsSerializerManagerFactoryTest.php#L55
tests/src/Factories/JwsSerializerManagerFactoryTest.php:55:33: InvalidArgument: Argument 1 of SimpleSAML\OpenID\Factories\JwsSerializerManagerFactory::build expects SimpleSAML\OpenID\SupportedSerializers, but PHPUnit\Framework\MockObject\MockObject provided (see https://psalm.dev/004)
|
Quality control
Process completed with exit code 2.
|
PropertyNotSetInConstructor:
tests/src/Algorithms/AlgorithmManagerTest.php#L16
tests/src/Algorithms/AlgorithmManagerTest.php:16:26: PropertyNotSetInConstructor: Property SimpleSAML\Test\OpenID\Algorithms\AlgorithmManagerTest::$signatureAlgorithmMock is not defined in constructor of SimpleSAML\Test\OpenID\Algorithms\AlgorithmManagerTest or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
tests/src/Algorithms/AlgorithmManagerTest.php#L18
tests/src/Algorithms/AlgorithmManagerTest.php:18:21: PropertyNotSetInConstructor: Property SimpleSAML\Test\OpenID\Algorithms\AlgorithmManagerTest::$signatureAlgorithmMocks is not defined in constructor of SimpleSAML\Test\OpenID\Algorithms\AlgorithmManagerTest or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
tests/src/Algorithms/SignatureAlgorithmBagTest.php#L17
tests/src/Algorithms/SignatureAlgorithmBagTest.php:17:38: PropertyNotSetInConstructor: Property SimpleSAML\Test\OpenID\Algorithms\SignatureAlgorithmBagTest::$signatureAlgorithmEnumRs256 is not defined in constructor of SimpleSAML\Test\OpenID\Algorithms\SignatureAlgorithmBagTest or in any methods called in the constructor (see https://psalm.dev/074)
|
MissingReturnType:
tests/src/Algorithms/SignatureAlgorithmBagTest.php#L47
tests/src/Algorithms/SignatureAlgorithmBagTest.php:47:21: MissingReturnType: Method SimpleSAML\Test\OpenID\Algorithms\SignatureAlgorithmBagTest::testCanGetAllInstances does not have a return type, expecting void (see https://psalm.dev/050)
|
InternalMethod:
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php#L585
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php:585:16: InternalMethod: The method PHPUnit\Framework\TestCase::addToAssertionCount is internal to PHPUnit but called from SimpleSAML\Test\OpenID\Codebooks\MetadataPolicyOperatorsEnumTest::testCanValidateGeneralParameterOperationRules (see https://psalm.dev/175)
|
InternalMethod:
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php#L593
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php:593:16: InternalMethod: The method PHPUnit\Framework\TestCase::addToAssertionCount is internal to PHPUnit but called from SimpleSAML\Test\OpenID\Codebooks\MetadataPolicyOperatorsEnumTest::testCanValidateGeneralParameterOperationRules (see https://psalm.dev/175)
|
InternalMethod:
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php#L630
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php:630:16: InternalMethod: The method PHPUnit\Framework\TestCase::addToAssertionCount is internal to PHPUnit but called from SimpleSAML\Test\OpenID\Codebooks\MetadataPolicyOperatorsEnumTest::testValidateSpecificParameterOperationRulesForAddAndSubsetOf (see https://psalm.dev/175)
|
InternalMethod:
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php#L650
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php:650:16: InternalMethod: The method PHPUnit\Framework\TestCase::addToAssertionCount is internal to PHPUnit but called from SimpleSAML\Test\OpenID\Codebooks\MetadataPolicyOperatorsEnumTest::testValidateSpecificParameterOperationRulesForAddAndSupersetOf (see https://psalm.dev/175)
|
InternalMethod:
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php#L670
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php:670:16: InternalMethod: The method PHPUnit\Framework\TestCase::addToAssertionCount is internal to PHPUnit but called from SimpleSAML\Test\OpenID\Codebooks\MetadataPolicyOperatorsEnumTest::testValidateSpecificParameterOperationRulesForDefaultAndOneOf (see https://psalm.dev/175)
|
InternalMethod:
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php#L690
tests/src/Codebooks/MetadataPolicyOperatorsEnumTest.php:690:16: InternalMethod: The method PHPUnit\Framework\TestCase::addToAssertionCount is internal to PHPUnit but called from SimpleSAML\Test\OpenID\Codebooks\MetadataPolicyOperatorsEnumTest::testValidateSpecificParameterOperationRulesForDefaultAndSubsetOf (see https://psalm.dev/175)
|