Failed Conditions
Push — v7 ( 75abca...a687dc )
by Florent
04:04
created

KeyContext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A iLoadAKeySetFromAnUri() 0 7 1
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
var_dump($jkuFactory->lo...com/openid/v1/certs')); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
35
    }
36
}
37