Code Duplication    Length = 6-6 lines in 2 locations

tests/bootstrap.php 2 locations

@@ 33-38 (lines=6) @@
30
31
function testUaList($object,$detectorProperty,$property,$uaList,$expectedValue)
32
{
33
    foreach($uaList as $ua)
34
    {
35
        $obj = Detector::analyse($ua)->$detectorProperty;
36
        $func = 'get'.$property;
37
        $object->assertEquals($expectedValue,$obj->$func());
38
    }
39
}
40
41
function testUaListBooleanTrue($object,$detectorProperty,$property,$uaList)
@@ 43-48 (lines=6) @@
40
41
function testUaListBooleanTrue($object,$detectorProperty,$property,$uaList)
42
{
43
    foreach($uaList as $ua)
44
    {
45
        $obj = Detector::analyse($ua)->$detectorProperty;
46
        $func = 'is'.$property;
47
        $object->assertTrue($obj->$func(),'Object Property '.$property.' is no equal TRUE');
48
    }
49
}
50
51
function testUaListIsProperty($object,$detectorProperty,$uaList,$expectedValue)