GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 705157...0b8fba )
by
unknown
12s
created

DefinitionManagerTest::testItIsInstantiable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\SitemapBundle\Tests\Definition;
11
12
use Core23\SitemapBundle\Definition\DefintionManager;
13
use Core23\SitemapBundle\Definition\SitemapDefinition;
14
use PHPUnit\Framework\TestCase;
15
16
final class DefinitionManagerTest extends TestCase
17
{
18
    public function testAddDefintion(): void
19
    {
20
        $definition = new DefintionManager();
21
        $definition->addDefinition('foo.definition', [
22
            'foo' => 'bar',
23
        ]);
24
25
        foreach ($definition->getAll() as $id =>  $item) {
26
            static::assertInstanceOf(SitemapDefinition::class, $item);
27
            static::assertSame('foo.definition', $id);
28
            static::assertSame([
29
                'foo' => 'bar',
30
            ], $item->getSettings());
31
        }
32
    }
33
}
34