Skip to content

Commit

Permalink
fix PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak authored and sgiehl committed Nov 18, 2024
1 parent 4b49df6 commit 692f102
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Tests/Parser/Client/BrowserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,15 @@ public function testBrowserFamiliesNoDuplicates(): void

public function testShortCodesComparisonWithBrowsers(): void
{
$reflectionClass = new \ReflectionClass(Browser::class);
$availableBrowsers = $reflectionClass->getProperty('availableBrowsers')->getValue();
$browserFamilies = $reflectionClass->getProperty('browserFamilies')->getValue();
$result = [];
$reflectionClass = new \ReflectionClass(Browser::class);
$browserProperty = $reflectionClass->getProperty('availableBrowsers');
$browserProperty->setAccessible(true);
$availableBrowsers = $browserProperty->getValue();

$browserFamilyProperty = $reflectionClass->getProperty('browserFamilies');
$browserFamilyProperty->setAccessible(true);
$browserFamilies = $browserFamilyProperty->getValue();
$result = [];

foreach ($browserFamilies as $codes) {
foreach ($codes as $code) {
Expand Down

0 comments on commit 692f102

Please sign in to comment.