Failed Conditions
Push — ng ( ada769...ebc492 )
by Florent
08:29 queued 40s
created

anAccessTokenCanBeCreatedUsingTheCommand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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 OAuth2Framework\Component\Server\Core\Tests;
15
16
use OAuth2Framework\Component\Server\Core\DomainUriLoader;
17
use PHPUnit\Framework\TestCase;
18
19
/**
20
 * @group DomainUriLoader
21
 */
22
final class DomainUriLoaderTest extends TestCase
23
{
24
    /**
25
     * @test
26
     * @expectedException \League\JsonReference\SchemaLoadingException
27
     * @expectedExceptionMessage The schema "foo" is not supported.
28
     */
29
    public function anAccessTokenCanBeCreatedUsingTheCommand()
30
    {
31
        $domainUriLoader = new DomainUriLoader();
32
        $domainUriLoader->load('foo');
33
    }
34
}
35