Passed
Push — master ( 4eb2fe...e73e32 )
by Daniel
03:44
created

MockTest::getPackageAliases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
nc 1
nop 1
dl 0
loc 4
c 1
b 0
f 0
cc 1
rs 10
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