Skip to content

Commit 3b549e0

Browse files
committed
Bundlle deps fixed
1 parent 6ad0944 commit 3b549e0

File tree

14 files changed

+132
-5
lines changed

14 files changed

+132
-5
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
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": "*",
@@ -52,7 +52,7 @@
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",

src/Bundle/JoseFramework/Tests/Functional/Checker/ClaimCheckerTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
*/
2424
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/Checker/HeaderCheckerTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
*/
2424
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/Console/ConsoleTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace Jose\Bundle\JoseFramework\Tests\Functional\Console;
1515

16+
use Jose\Component\Console\EcKeyGeneratorCommand;
1617
use Symfony\Bundle\FrameworkBundle\Console\Application;
1718
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
1819

@@ -22,6 +23,16 @@
2223
*/
2324
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/Encryption/JWEBuilderTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
*/
2424
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/Encryption/JWEComputationTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Jose\Component\Core\Converter\StandardConverter;
1717
use Jose\Component\Core\JWK;
1818
use Jose\Component\Encryption\JWEBuilder;
19+
use Jose\Component\Encryption\JWEBuilderFactory;
1920
use Jose\Component\Encryption\JWEDecrypter;
2021
use Jose\Component\Encryption\Serializer\CompactSerializer;
2122
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -26,6 +27,16 @@
2627
*/
2728
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/Encryption/JWELoaderTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace Jose\Bundle\JoseFramework\Tests\Functional\Encryption;
1515

16+
use Jose\Component\Encryption\JWEBuilderFactory;
1617
use Jose\Component\Encryption\JWEDecrypter;
1718
use Jose\Component\Encryption\JWEDecrypterFactory;
1819
use Jose\Component\Encryption\Serializer\JWESerializerManager;
@@ -24,6 +25,16 @@
2425
*/
2526
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/KeyManagement/JWKLoaderTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace Jose\Bundle\JoseFramework\Tests\Functional\KeyManagement;
1515

1616
use Jose\Component\Core\JWK;
17+
use Jose\Component\KeyManagement\JWKFactory;
1718
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1819

1920
/**
@@ -23,6 +24,16 @@
2324
*/
2425
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/KeyManagement/JWKSetLoaderTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Http\Mock\Client;
1717
use Jose\Bundle\JoseFramework\Tests\TestBundle\MessageFactory;
1818
use Jose\Component\Core\JWKSet;
19+
use Jose\Component\KeyManagement\JWKFactory;
1920
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
2021
use Symfony\Component\HttpFoundation\Response;
2122

@@ -25,6 +26,16 @@
2526
*/
2627
final 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
*/

src/Bundle/JoseFramework/Tests/Functional/Signature/JWSBuilderTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
*/
2424
final 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();

0 commit comments

Comments
 (0)