Passed
Pull Request — master (#8)
by Kevin
17:55
created

NullTaskRunnerTest::always_is_successful()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Zenstruck\ScheduleBundle\Tests\Schedule\Task\Runner;
4
5
use PHPUnit\Framework\TestCase;
0 ignored issues
show
Bug introduced by
The type PHPUnit\Framework\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...
6
use Zenstruck\ScheduleBundle\Schedule\Task\NullTask;
7
use Zenstruck\ScheduleBundle\Schedule\Task\Runner\NullTaskRunner;
8
9
/**
10
 * @author Kevin Bond <[email protected]>
11
 */
12
final class NullTaskRunnerTest extends TestCase
13
{
14
    /**
15
     * @test
16
     */
17
    public function always_is_successful()
18
    {
19
        $runner = new NullTaskRunner();
20
        $task = new NullTask('my task');
21
22
        $this->assertTrue($runner($task)->isSuccessful());
23
    }
24
25
    /**
26
     * @test
27
     */
28
    public function supports_null_task()
29
    {
30
        $this->assertTrue((new NullTaskRunner())->supports(new NullTask('my task')));
31
    }
32
}
33