File tree Expand file tree Collapse file tree 14 files changed +132
-5
lines changed Expand file tree Collapse file tree 14 files changed +132
-5
lines changed Original file line number Diff line number Diff line change 3838 "symfony/console" : " ^3.3|^4.0" ,
3939 "symfony/dependency-injection" : " ^3.3|^4.0" ,
4040 "symfony/framework-bundle" : " ^3.3|^4.0" ,
41- "symfony/http-kernel" : " ^3.|^4.03 "
41+ "symfony/http-kernel" : " ^3.3 |^4.0 "
4242 },
4343 "require-dev" : {
4444 "ext-curl" : " *" ,
5252 "symfony/browser-kit" : " ^3.3|^4.0" ,
5353 "symfony/finder" : " ^3.3|^4.0" ,
5454 "symfony/phpunit-bridge" : " ^3.3|^4.0" ,
55- "symfony/yaml" : " ^3.|^4.03 "
55+ "symfony/yaml" : " ^3.3 |^4.0 "
5656 },
5757 "replace" : {
5858 "web-token/jwt-core" : " self.version" ,
Original file line number Diff line number Diff line change 2323 */
2424final class ClaimCheckerTest extends WebTestCase
2525{
26+ /**
27+ * {@inheritdoc}
28+ */
29+ protected function setUp ()
30+ {
31+ if (!class_exists (ClaimCheckerManagerFactory::class)) {
32+ $ this ->markTestSkipped ('The component "web-token/jwt-checker" is not installed. ' );
33+ }
34+ }
35+
2636 /**
2737 * @test
2838 */
Original file line number Diff line number Diff line change 2323 */
2424final class HeaderCheckerTest extends WebTestCase
2525{
26+ /**
27+ * {@inheritdoc}
28+ */
29+ protected function setUp ()
30+ {
31+ if (!class_exists (HeaderCheckerManagerFactory::class)) {
32+ $ this ->markTestSkipped ('The component "web-token/jwt-checker" is not installed. ' );
33+ }
34+ }
35+
2636 /**
2737 * @test
2838 */
Original file line number Diff line number Diff line change 1313
1414namespace Jose \Bundle \JoseFramework \Tests \Functional \Console ;
1515
16+ use Jose \Component \Console \EcKeyGeneratorCommand ;
1617use Symfony \Bundle \FrameworkBundle \Console \Application ;
1718use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
1819
2223 */
2324final class ConsoleTest extends KernelTestCase
2425{
26+ /**
27+ * {@inheritdoc}
28+ */
29+ protected function setUp ()
30+ {
31+ if (!class_exists (EcKeyGeneratorCommand::class)) {
32+ $ this ->markTestSkipped ('The component "web-token/jwt-console" is not installed. ' );
33+ }
34+ }
35+
2536 /**
2637 * @test
2738 */
Original file line number Diff line number Diff line change 2323 */
2424final class JWEBuilderTest extends WebTestCase
2525{
26+ /**
27+ * {@inheritdoc}
28+ */
29+ protected function setUp ()
30+ {
31+ if (!class_exists (JWEBuilderFactory::class)) {
32+ $ this ->markTestSkipped ('The component "web-token/jwt-encryption" is not installed. ' );
33+ }
34+ }
35+
2636 /**
2737 * @test
2838 */
Original file line number Diff line number Diff line change 1616use Jose \Component \Core \Converter \StandardConverter ;
1717use Jose \Component \Core \JWK ;
1818use Jose \Component \Encryption \JWEBuilder ;
19+ use Jose \Component \Encryption \JWEBuilderFactory ;
1920use Jose \Component \Encryption \JWEDecrypter ;
2021use Jose \Component \Encryption \Serializer \CompactSerializer ;
2122use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
2627 */
2728final class JWEComputationTest extends WebTestCase
2829{
30+ /**
31+ * {@inheritdoc}
32+ */
33+ protected function setUp ()
34+ {
35+ if (!class_exists (JWEBuilderFactory::class)) {
36+ $ this ->markTestSkipped ('The component "web-token/jwt-encryption" is not installed. ' );
37+ }
38+ }
39+
2940 /**
3041 * @test
3142 */
Original file line number Diff line number Diff line change 1313
1414namespace Jose \Bundle \JoseFramework \Tests \Functional \Encryption ;
1515
16+ use Jose \Component \Encryption \JWEBuilderFactory ;
1617use Jose \Component \Encryption \JWEDecrypter ;
1718use Jose \Component \Encryption \JWEDecrypterFactory ;
1819use Jose \Component \Encryption \Serializer \JWESerializerManager ;
2425 */
2526final class JWEDecrypterTest extends WebTestCase
2627{
28+ /**
29+ * {@inheritdoc}
30+ */
31+ protected function setUp ()
32+ {
33+ if (!class_exists (JWEBuilderFactory::class)) {
34+ $ this ->markTestSkipped ('The component "web-token/jwt-encryption" is not installed. ' );
35+ }
36+ }
37+
2738 /**
2839 * @test
2940 */
Original file line number Diff line number Diff line change 1414namespace Jose \Bundle \JoseFramework \Tests \Functional \KeyManagement ;
1515
1616use Jose \Component \Core \JWK ;
17+ use Jose \Component \KeyManagement \JWKFactory ;
1718use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
1819
1920/**
2324 */
2425final class JWKLoaderTest extends WebTestCase
2526{
27+ /**
28+ * {@inheritdoc}
29+ */
30+ protected function setUp ()
31+ {
32+ if (!class_exists (JWKFactory::class)) {
33+ $ this ->markTestSkipped ('The component "web-token/jwt-key-mgmt" is not installed. ' );
34+ }
35+ }
36+
2637 /**
2738 * @test
2839 */
Original file line number Diff line number Diff line change 1616use Http \Mock \Client ;
1717use Jose \Bundle \JoseFramework \Tests \TestBundle \MessageFactory ;
1818use Jose \Component \Core \JWKSet ;
19+ use Jose \Component \KeyManagement \JWKFactory ;
1920use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
2021use Symfony \Component \HttpFoundation \Response ;
2122
2526 */
2627final class JWKSetLoaderTest extends WebTestCase
2728{
29+ /**
30+ * {@inheritdoc}
31+ */
32+ protected function setUp ()
33+ {
34+ if (!class_exists (JWKFactory::class)) {
35+ $ this ->markTestSkipped ('The component "web-token/jwt-key-mgmt" is not installed. ' );
36+ }
37+ }
38+
2839 /**
2940 * @var MessageFactory
3041 */
Original file line number Diff line number Diff line change 2323 */
2424final class JWSBuilderTest extends WebTestCase
2525{
26+ /**
27+ * {@inheritdoc}
28+ */
29+ protected function setUp ()
30+ {
31+ if (!class_exists (JWSBuilderFactory::class)) {
32+ $ this ->markTestSkipped ('The component "web-token/jwt-signature" is not installed. ' );
33+ }
34+ }
35+
2636 public function testJWSBuilderFactoryIsAvailable ()
2737 {
2838 $ client = static ::createClient ();
You can’t perform that action at this time.
0 commit comments