Skip to content

Commit 5d8388d

Browse files
committed
Minor tests modifications
1 parent 080aad2 commit 5d8388d

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ script:
3131

3232
after_success:
3333
- ./vendor/bin/coveralls --no-interaction
34+
- ./vendor/bin/phpstan analyze --level max -c phpstan.neon src

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ClaimCheckerTest extends WebTestCase
2929
protected function setUp()
3030
{
3131
if (!class_exists(ClaimCheckerManagerFactory::class)) {
32-
$this->markTestSkipped('The component "web-token/jwt-checker" is not installed.');
32+
self::markTestSkipped('The component "web-token/jwt-checker" is not installed.');
3333
}
3434
}
3535

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* The MIT License (MIT)
7+
*
8+
* Copyright (c) 2014-2018 Spomky-Labs
9+
*
10+
* This software may be modified and distributed under the terms
11+
* of the MIT license. See the LICENSE file for details.
12+
*/
13+
14+
namespace Jose\Bundle\JoseFramework\Tests\Functional\KeyManagement;
15+
16+
use Jose\Component\KeyManagement\JKUFactory;
17+
use Jose\Component\KeyManagement\X5UFactory;
18+
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
19+
20+
/**
21+
* @group Bundle
22+
* @group Functional
23+
* @group KeyManagement
24+
*/
25+
class JKUAndX5UFactoriesTest extends WebTestCase
26+
{
27+
/**
28+
* {@inheritdoc}
29+
*/
30+
protected function setUp()
31+
{
32+
if (!class_exists(JKUFactory::class)) {
33+
$this->markTestSkipped('The component "web-token/jwt-key-mgmt" is not installed.');
34+
}
35+
}
36+
37+
/**
38+
* @test
39+
*/
40+
public function theJKUFactoryServiceIsAvailable()
41+
{
42+
$client = static::createClient();
43+
44+
$container = $client->getContainer();
45+
self::assertTrue($container->has(JKUFactory::class));
46+
}
47+
48+
/**
49+
* @test
50+
*/
51+
public function theX5UFactoryServiceIsAvailable()
52+
{
53+
$client = static::createClient();
54+
55+
$container = $client->getContainer();
56+
self::assertTrue($container->has(X5UFactory::class));
57+
}
58+
}

0 commit comments

Comments
 (0)