zenstruck /
schedule-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Zenstruck\ScheduleBundle\Tests\Schedule\Exception; |
||
| 4 | |||
| 5 | use PHPUnit\Framework\TestCase; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use Zenstruck\ScheduleBundle\Schedule\Exception\SkipTask; |
||
| 7 | use Zenstruck\ScheduleBundle\Tests\Fixture\MockTask; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @author Kevin Bond <[email protected]> |
||
| 11 | */ |
||
| 12 | final class SkipTaskTest extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @test |
||
| 16 | */ |
||
| 17 | public function can_create_skipped_result() |
||
| 18 | { |
||
| 19 | $task = new MockTask(); |
||
| 20 | $exception = new SkipTask('some reason'); |
||
| 21 | $result = $exception->createResult($task); |
||
| 22 | |||
| 23 | $this->assertTrue($result->isSkipped()); |
||
| 24 | $this->assertSame($task, $result->getTask()); |
||
| 25 | $this->assertSame('some reason', $result->getDescription()); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths