Skip to content

Commit 1f2bb5d

Browse files
committed
Include Phpactor PHPUnit TestCase
1 parent a7b4098 commit 1f2bb5d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
}
1010
],
1111
"require": {
12-
"webmozart/path-util": "^2.3"
12+
"webmozart/path-util": "^2.3",
13+
"dms/phpunit-arraysubset-asserts": "dev-master",
14+
"phpspec/prophecy-phpunit": "dev-master"
1315
},
1416
"require-dev": {
15-
"phpunit/phpunit": "~7.0",
17+
"phpunit/phpunit": "^9.0",
1618
"friendsofphp/php-cs-fixer": "~2.15.0",
17-
"phpstan/phpstan": "~0.11.0"
19+
"phpstan/phpstan": "^0.12.0"
1820
},
1921
"autoload": {
2022
"psr-4": {

tests/Integration/WorkspaceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class WorkspaceTest extends IntegrationTestCase
99
{
10-
public function setUp()
10+
protected function setUp(): void
1111
{
1212
$this->workspace = Workspace::create($this->workspaceDir());
1313
$this->workspace->reset();
@@ -78,7 +78,7 @@ public function testPutFileContents()
7878
{
7979
$this->workspace->put('foobar', 'foobar contents');
8080
$this->assertTrue($this->workspace->exists('foobar'));
81-
$this->assertContains('foobar contents', $this->workspace->getContents('foobar'));
81+
$this->assertStringContainsString('foobar contents', $this->workspace->getContents('foobar'));
8282
}
8383

8484
public function testGetPathWithNoArgs()

0 commit comments

Comments
 (0)