Skip to content

Commit 65cd802

Browse files
committed
Merge branch 'coverage' of https://github.com/h3xx/Mobile-Detect into devel
2 parents 24b8cab + 295688b commit 65cd802

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ before_script:
2727

2828
script:
2929
- vendor/bin/phpunit --version
30-
- vendor/bin/phpunit -v -c tests/phpunit.xml
30+
- vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-text --strict-coverage --stop-on-risky
3131

3232
notifications:
3333
email:

tests/BasicsTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public function testConstructorInjection(array $headers)
126126

127127
/**
128128
* @dataProvider headersProvider
129+
* @param $headers
129130
*/
130131
public function testInvalidHeader($headers)
131132
{
@@ -152,6 +153,8 @@ public function userAgentProvider()
152153

153154
/**
154155
* @dataProvider userAgentProvider
156+
* @param $headers
157+
* @param $expectedUserAgent
155158
*/
156159
public function testGetUserAgent($headers, $expectedUserAgent)
157160
{
@@ -491,6 +494,8 @@ public function crazyVersionNumbers()
491494

492495
/**
493496
* @dataProvider crazyVersionNumbers
497+
* @param $raw
498+
* @param $expected
494499
*/
495500
public function testPrepareVersionNo($raw, $expected)
496501
{

tests/phpunit.xml

-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@
2525
<file>../Mobile_Detect.php</file>
2626
</whitelist>
2727
</filter>
28-
2928
</phpunit>

0 commit comments

Comments
 (0)