Skip to content

Commit 5500bbb

Browse files
committed
Merge branch 'master' of github.com:serbanghita/Mobile-Detect into devel
2 parents 06bfcc2 + 70de46e commit 5500bbb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/BasicsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public function testRules()
455455
count(Mobile_Detect::getBrowsers())
456456
));
457457
$rules = $md->getRules();
458-
$this->assertEquals($count, count($rules));
458+
$this->assertCount($count, $rules);
459459
}
460460

461461
public function testRulesExtended()
@@ -470,7 +470,7 @@ public function testRulesExtended()
470470
));
471471
$md->setDetectionType(Mobile_Detect::DETECTION_TYPE_EXTENDED);
472472
$rules = $md->getRules();
473-
$this->assertEquals($count, count($rules));
473+
$this->assertCount($count, $rules);
474474
}
475475

476476
public function testScriptVersion()

tests/VendorsTest_tmp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ public function testisMobileIsTablet()
4949
//if ($brand == 'Apple') {
5050
// echo 'UA ('.$condition.'('.$assertKey.') === '.$assertValue.'): '.$userAgent . "\n";
5151
//}
52-
$this->assertTrue( $this->detect->$condition( $assertKey ) == $assertValue, 'UA ('.$condition.'('.$assertKey.') === '.$assertValue.'): '.$userAgent);
52+
$this->assertSame( $this->detect->$condition( $assertKey ), $assertValue, 'UA ('.$condition.'('.$assertKey.') === '.$assertValue.'): '.$userAgent);
5353
}
5454
break;
5555

5656
default:
57-
$this->assertTrue($this->detect->$condition() === $assert, 'UA ('.$condition.'): '.$userAgent);
57+
$this->assertSame($this->detect->$condition(), $assert, 'UA ('.$condition.'): '.$userAgent);
5858
break;
5959
}
6060

0 commit comments

Comments
 (0)