Passed
Pull Request — master (#277)
by Kirill
03:11
created

ExtensionsCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testExtensions() 0 6 2
1
<?php
2
3
/**
4
 * Spiral Framework.
5
 *
6
 * @license   MIT
7
 * @author    Anton Titov (Wolfy-J)
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Framework\Framework;
13
14
use Spiral\Tests\Framework\ConsoleTest;
15
16
class ExtensionsCommand extends ConsoleTest
17
{
18
    public function testExtensions(): void
19
    {
20
        $output = $this->runCommand('php:extensions');
21
22
        foreach (get_loaded_extensions() as $extension) {
23
            $this->assertStringContainsString($extension, $output);
24
        }
25
    }
26
}
27