Skip to content

Commit 95d851d

Browse files
committed
upgrade to PHPUnit 8
1 parent 91334b7 commit 95d851d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ install:
2828
- composer info
2929

3030
script:
31-
- vendor/bin/phpunit --exclude-group=none
31+
- vendor/bin/phpunit
32+
- vendor/bin/phpunit --group=functional
3233
- git log $(git describe --abbrev=0 --tags)...HEAD --no-merges --pretty=format:"* [%h](http://github.com/${TRAVIS_REPO_SLUG}/commit/%H) %s (%cN)"
3334

3435
branches:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
],
3636
"require-dev": {
37-
"phpunit/phpunit": "^5.0"
37+
"phpunit/phpunit": "^8.0"
3838
},
3939
"autoload": {
4040
"psr-4": {

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
bootstrap="vendor/autoload.php"
1312
>
1413
<testsuites>

test/ElasticSearchRepositoryFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
use Broadway\Serializer\Serializer;
1515
use Elasticsearch\Client;
16-
use PHPUnit_Framework_TestCase;
16+
use PHPUnit\Framework\TestCase;
1717

18-
class ElasticSearchRepositoryFactoryTest extends PHPUnit_Framework_TestCase
18+
class ElasticSearchRepositoryFactoryTest extends TestCase
1919
{
2020
/**
2121
* @test

test/ElasticSearchRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ public function it_creates_an_index_with_non_analyzed_terms()
7878

7979
/**
8080
* @test
81-
* @expectedException \Assert\InvalidArgumentException
8281
*/
8382
public function it_throws_when_saving_a_readmodel_of_other_type_than_configured()
8483
{
84+
$this->expectException('Assert\InvalidArgumentException');
8585
$readModel = $this->prophesize('\Broadway\ReadModel\Identifiable');
8686

8787
$this->repository->save($readModel->reveal());
8888
}
8989

90-
public function tearDown()
90+
public function tearDown(): void
9191
{
9292
$this->client->indices()->delete(['index' => 'test_index']);
9393

0 commit comments

Comments
 (0)