File tree Expand file tree Collapse file tree 3 files changed +60
-1
lines changed
src/Bundle/JoseFramework/Tests/Functional Expand file tree Collapse file tree 3 files changed +60
-1
lines changed Original file line number Diff line number Diff line change @@ -31,3 +31,4 @@ script:
3131
3232after_success :
3333 - ./vendor/bin/coveralls --no-interaction
34+ - ./vendor/bin/phpstan analyze --level max -c phpstan.neon src
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments