File tree Expand file tree Collapse file tree 3 files changed +6
-27
lines changed
Expand file tree Collapse file tree 3 files changed +6
-27
lines changed Original file line number Diff line number Diff line change 1212 "require" : {
1313 "ivopetkov/html5-dom-document-php" : " ^1.1" ,
1414 "nesbot/carbon" : " ^2.7" ,
15- "php" : " ^7.1"
15+ "php" : " ^7.1 || ^8.0 "
1616 },
1717 "require-dev" : {
18- "phpunit/phpunit" : " ^7.0 "
18+ "phpunit/phpunit" : " ^9.6 "
1919 },
2020 "autoload" : {
2121 "psr-4" : {
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit backupGlobals =" false"
3- backupStaticAttributes =" false"
4- bootstrap =" vendor/autoload.php"
2+ <phpunit bootstrap =" vendor/autoload.php"
53 colors =" true"
6- convertErrorsToExceptions =" true"
7- convertNoticesToExceptions =" true"
8- convertWarningsToExceptions =" true"
9- processIsolation =" false"
10- stopOnFailure =" false" >
4+ cacheResult =" false" >
115 <testsuites >
126 <testsuite name =" Unit Tests" >
13- <directory suffix =" Test.php" >./tests/Unit </directory >
7+ <directory suffix =" Test.php" >./tests</directory >
148 </testsuite >
159 </testsuites >
16- <filter >
17- <whitelist >
18- <directory suffix =" .php" >src</directory >
19- <exclude >
20- <directory suffix =" .php" >src/Examples</directory >
21- </exclude >
22- </whitelist >
23- </filter >
2410</phpunit >
Original file line number Diff line number Diff line change @@ -35,19 +35,12 @@ public function testStatusShouldReturnMajor()
3535 $ this ->assertSame (GitHubStatus::MAJOR , $ mockedClient ->status ());
3636 }
3737
38- public function testStatusShouldReturnuUnknown ()
38+ public function testStatusShouldReturnUnknown ()
3939 {
4040 $ mockedClient = $ this ->createMock (Client::class);
4141 $ mockedClient ->method ('status ' )
4242 ->willReturn (GitHubStatus::UNKNOWN );
4343
4444 $ this ->assertSame (GitHubStatus::UNKNOWN , $ mockedClient ->status ());
4545 }
46-
47- public function testStatusWillReturnGood ()
48- {
49- $ mockedClient = (new Client ())->status ();
50-
51- $ this ->assertSame (GitHubStatus::GOOD , $ mockedClient ->status ());
52- }
5346}
You can’t perform that action at this time.
0 commit comments