MockTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 17
c 1
b 0
f 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPackageProviders() 0 3 1
A testExample() 0 3 1
A getPackageAliases() 0 4 1
1
<?php
2
3
namespace Blok\Mock\Tests;
4
5
use Blok\Mock\ServiceProvider;
0 ignored issues
show
Bug introduced by
The type Blok\Mock\ServiceProvider was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class MockTest extends TestCase
0 ignored issues
show
Bug introduced by
The type Blok\Mock\Tests\TestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
{
9
    protected function getPackageProviders($app)
10
    {
11
        return [ServiceProvider::class];
12
    }
13
14
    protected function getPackageAliases($app)
15
    {
16
        return [
17
            'mock' => \Blok\Mock\Mock::class,
18
        ];
19
    }
20
21
    public function testExample()
22
    {
23
        $this->assertEquals(1, 1);
24
    }
25
}
26