BootstrapWidgetsUnitTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 1
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetTemplate() 0 10 1
1
<?php
2
namespace Mezon\Gui\WidgetsRegistry\Tests;
3
4
use PHPUnit\Framework\TestCase;
5
use Mezon\Gui\WidgetsRegistry\BootstrapWidgets;
6
7
/**
8
 *
9
 * @psalm-suppress PropertyNotSetInConstructor
10
 */
11
class BootstrapWidgetsUnitTest extends TestCase
12
{
13
14
    /**
15
     * Getting template
16
     */
17
    public function testGetTemplate(): void
18
    {
19
        // setup
20
        $bootstrapWidgets = new BootstrapWidgets();
21
22
        // test body
23
        $widget = $bootstrapWidgets->getWidget('table-cell-start');
24
25
        // assertions
26
        $this->assertStringContainsString('<td', $widget, 'Content of the widget "table-cell-start" was not loaded');
27
    }
28
}
29