Skip to content

Commit 9275026

Browse files
committed
wip
1 parent 8d48e44 commit 9275026

File tree

6 files changed

+55
-10
lines changed

6 files changed

+55
-10
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"phpstan/extension-installer": "^1.4",
3636
"phpstan/phpstan": "^2.1",
3737
"phpstan/phpstan-deprecation-rules": "^2.0",
38+
"phpstan/phpstan-mockery": "^2.0",
3839
"phpstan/phpstan-strict-rules": "^2.0"
3940
},
4041
"autoload": {

composer.lock

Lines changed: 50 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ parameters:
22
level: max
33
paths:
44
- src
5+
- tests

src/WpOrg/Api/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
class Client
1515
{
16+
/** @var array<string, bool> */
1617
private array $isClosed = [];
1718

1819
public function __construct(

tests/Feature/WpOrg/Api/ClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
$client->isClosed('foo');
7272
$client->isClosed('foo');
7373

74-
$httpDownloaderMock->shouldHaveReceived('add')->once();
74+
$httpDownloaderMock->shouldHaveReceived('add')
75+
->once();
7576
})->with([true, false]);
7677
});
7778
});

tests/Pest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
|
1010
*/
1111

12-
pest()->group('e2e')
13-
->in('E2E');
14-
1512
pest()->group('feature')
1613
->in('Feature');
1714

@@ -52,8 +49,3 @@
5249
| global functions to help you to reduce the number of lines of code in your test files.
5350
|
5451
*/
55-
56-
function something()
57-
{
58-
// ..
59-
}

0 commit comments

Comments
 (0)