| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class UserAgentTest extends TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @test |
||
| 14 | * @dataProvider parsedUserAgentDataProvider |
||
| 15 | * |
||
| 16 | * @param string $browser |
||
| 17 | * @param string $version |
||
| 18 | * @param string $platform |
||
| 19 | * |
||
| 20 | */ |
||
| 21 | public function createsThemselvesAndProvideBrowserNameVersionAndPlatform(string $browser, string $version, string $platform): void |
||
| 22 | { |
||
| 23 | $userAgent = UserAgent::create($browser, $version, $platform); |
||
| 24 | |||
| 25 | $this->assertSame($platform, $userAgent->getPlatform()); |
||
| 26 | $this->assertSame($version, $userAgent->getBrowserVersion()); |
||
| 27 | $this->assertSame($browser, $userAgent->getBrowseName()); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function parsedUserAgentDataProvider(): array |
||
| 36 | ]; |
||
| 37 | } |
||
| 38 | } |
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