File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 9
9
}
10
10
],
11
11
"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"
13
15
},
14
16
"require-dev" : {
15
- "phpunit/phpunit" : " ~7 .0" ,
17
+ "phpunit/phpunit" : " ^9 .0" ,
16
18
"friendsofphp/php-cs-fixer" : " ~2.15.0" ,
17
- "phpstan/phpstan" : " ~0.11 .0"
19
+ "phpstan/phpstan" : " ^0.12 .0"
18
20
},
19
21
"autoload" : {
20
22
"psr-4" : {
Original file line number Diff line number Diff line change 7
7
8
8
class WorkspaceTest extends IntegrationTestCase
9
9
{
10
- public function setUp ()
10
+ protected function setUp (): void
11
11
{
12
12
$ this ->workspace = Workspace::create ($ this ->workspaceDir ());
13
13
$ this ->workspace ->reset ();
@@ -78,7 +78,7 @@ public function testPutFileContents()
78
78
{
79
79
$ this ->workspace ->put ('foobar ' , 'foobar contents ' );
80
80
$ this ->assertTrue ($ this ->workspace ->exists ('foobar ' ));
81
- $ this ->assertContains ('foobar contents ' , $ this ->workspace ->getContents ('foobar ' ));
81
+ $ this ->assertStringContainsString ('foobar contents ' , $ this ->workspace ->getContents ('foobar ' ));
82
82
}
83
83
84
84
public function testGetPathWithNoArgs ()
You can’t perform that action at this time.
0 commit comments