Spomky-Labs /
jose
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | /* |
||
| 6 | * The MIT License (MIT) |
||
| 7 | * |
||
| 8 | * Copyright (c) 2014-2017 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\Test\Context; |
||
| 15 | |||
| 16 | use Behat\Gherkin\Node\PyStringNode; |
||
| 17 | use Jose\Component\KeyManagement\JKUFactory; |
||
| 18 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
||
| 19 | use Symfony\Component\Console\Tester\CommandTester; |
||
| 20 | use Behat\Behat\Context\Context; |
||
| 21 | use Behat\Symfony2Extension\Context\KernelDictionary; |
||
| 22 | |||
| 23 | final class KeyContext implements Context |
||
| 24 | { |
||
| 25 | use KernelDictionary; |
||
| 26 | /** |
||
| 27 | * @When I load a key set from an URI |
||
| 28 | */ |
||
| 29 | public function iLoadAKeySetFromAnUri() |
||
| 30 | { |
||
| 31 | /** @var JKUFactory $jkuFactory */ |
||
| 32 | $jkuFactory = $this->getContainer()->get(JKUFactory::class); |
||
| 33 | |||
| 34 | var_dump($jkuFactory->loadFromUrl('https://login.yahoo.com/openid/v1/certs')); |
||
|
0 ignored issues
–
show
Security
Debugging Code
introduced
by
Loading history...
|
|||
| 35 | } |
||
| 36 | } |
||
| 37 |