Skip to content

Commit b493993

Browse files
committed
Merge branch 'release/1.0.0'
2 parents eac62ac + 1f30c99 commit b493993

File tree

6 files changed

+19
-55
lines changed

6 files changed

+19
-55
lines changed

.travis.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
language: php
22

33
php:
4-
- 5.5.9
5-
- 5.5
6-
- 5.6
7-
- 7.0
84
- 7.1
5+
- 7.2
96

107
env:
118
global:
129
- setup=basic
1310

1411
matrix:
1512
include:
16-
- php: 7.0
17-
env: setup=lowest
18-
- php: 7.0
19-
env: setup=stable
2013
- php: 7.1
2114
env: setup=lowest
2215
- php: 7.1
2316
env: setup=stable
17+
- php: 7.2
18+
env: setup=lowest
19+
- php: 7.2
20+
env: setup=stable
2421

2522
sudo: false
2623

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.0
1+
1.0.0

composer.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@
1717
],
1818
"require": {
1919
"php": ">=5.5.0",
20-
"illuminate/cache": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*",
21-
"illuminate/routing": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*",
22-
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*",
20+
"illuminate/cache": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
21+
"illuminate/routing": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
22+
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
2323
"mobiledetect/mobiledetectlib": "~2.8",
2424
"ua-parser/uap-php": "~3.4.1"
2525
},
2626
"require-dev": {
27-
"illuminate/http": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*",
28-
"mockery/mockery": "~0.9.1",
29-
"phpunit/phpunit": "~4.0|~5.0",
27+
"illuminate/http": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
28+
"mockery/mockery": "^1",
29+
"phpunit/phpunit": "~7.0",
3030
"psy/psysh": "^0.5.1",
31-
"satooshi/php-coveralls": "^0.6.1|^1",
32-
"symfony/var-dumper": "~2.7|~3.0"
31+
"satooshi/php-coveralls": "^1",
32+
"symfony/thanks": "^1.0",
33+
"symfony/var-dumper": "~3.0"
3334
},
3435
"autoload": {
3536
"files": [

phpunit.xml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
</whitelist>
4242
</filter>
4343

44-
<listeners>
45-
<listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
46-
</listeners>
47-
4844
<logging>
4945
<log type="coverage-html"
5046
target="./build/coverage"

tests/FilterServiceProviderTest.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,4 @@ public function it_does_nothing_in_the_register_method()
7171
{
7272
$this->assertNull($this->service_provider->register());
7373
}
74-
75-
/**
76-
* @test
77-
*/
78-
public function it_performs_a_boot_method()
79-
{
80-
/*$this->application_mock->shouldReceive('publishes')
81-
->once()
82-
->with([
83-
'/some/path/browserfilter.php',
84-
])
85-
->andReturnNull();
86-
87-
$this->application_mock->shouldReceive('mergeConfigFrom')
88-
->once()
89-
->withArgs([
90-
'/config/browserfilter.php',
91-
'browserfilter',
92-
])
93-
->andReturnNull();*/
94-
95-
$this->service_provider->boot();
96-
}
9774
}

tests/TestCase.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,15 @@
22

33
namespace Spinen\BrowserFilter;
44

5-
use Mockery;
6-
use PHPUnit_Framework_TestCase;
5+
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
6+
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
77

88
/**
99
* Class TestCase
1010
*
1111
* @package Spinen\BrowserFilter
1212
*/
13-
abstract class TestCase extends PHPUnit_Framework_TestCase
13+
abstract class TestCase extends PHPUnitTestCase
1414
{
15-
public function tearDown()
16-
{
17-
if (class_exists('Mockery')) {
18-
Mockery::close();
19-
}
20-
21-
parent::tearDown();
22-
}
15+
use MockeryPHPUnitIntegration;
2316
}

0 commit comments

Comments
 (0)