StylesheetProviderTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
dl 0
loc 27
rs 10
c 2
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test__construct() 0 8 1
A testGetStylesheets() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2022 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Tests\Provider;
13
14
use WBW\Bundle\CoreBundle\Provider\StylesheetProvider;
15
use WBW\Bundle\CoreBundle\Tests\AbstractTestCase;
16
use WBW\Library\Symfony\Provider\ProviderInterface;
17
use WBW\Library\Symfony\Provider\StylesheetProviderInterface;
18
19
/**
20
 * Stylesheet provider test.
21
 *
22
 * @author webeweb <https://github.com/webeweb>
23
 * @package WBW\Bundle\CoreBundle\Tests\Provider
24
 */
25
class StylesheetProviderTest extends AbstractTestCase {
26
27
    /**
28
     * Test getStylesheets()
29
     *
30
     * @return void
31
     */
32
    public function testGetStylesheets(): void {
33
34
        $obj = new StylesheetProvider();
35
36
        $this->assertEquals([], $obj->getStylesheets());
37
    }
38
39
    /**
40
     * Test __construct()
41
     *
42
     * @return void
43
     */
44
    public function test__construct(): void {
45
46
        $this->assertEquals("wbw.core.provider.stylesheet", StylesheetProvider::SERVICE_NAME);
47
48
        $obj = new StylesheetProvider();
49
50
        $this->assertInstanceOf(ProviderInterface::class, $obj);
51
        $this->assertInstanceOf(StylesheetProviderInterface::class, $obj);
52
    }
53
}
54