| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | #[CoversClass( Visitor::class )] |
||
| 12 | class VisitorTest extends TestCase { |
||
| 13 | |||
| 14 | private const TEST_IMPRESSION_COUNT = 2; |
||
| 15 | private const TEST_BUCKET = 'TEST_BUCKET123'; |
||
| 16 | private const TEST_DISPLAY_WIDTH = 500; |
||
| 17 | |||
| 18 | public function test_given_visitor_without_categories_then_correct_values_are_returned(): void { |
||
| 19 | $visitor = new Visitor( |
||
| 20 | self::TEST_IMPRESSION_COUNT, |
||
| 21 | self::TEST_BUCKET, |
||
| 22 | self::TEST_DISPLAY_WIDTH ); |
||
| 23 | $this->assertEquals( self::TEST_IMPRESSION_COUNT, $visitor->getTotalImpressionCount() ); |
||
| 24 | $this->assertEquals( self::TEST_BUCKET, $visitor->getBucketIdentifier() ); |
||
| 25 | $this->assertFalse( $visitor->inCategory( 'default' ) ); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function test_given_visitor_with_categories_then_correct_values_are_returned(): void { |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
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