We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0bad4 commit fa08ae4Copy full SHA for fa08ae4
tests/ParserTest.php
@@ -39,3 +39,8 @@
39
$actual = (new Parser(__DIR__ . '/../tests/assets/fakeInstalled.json'))->parseAll('name');
40
expect($actual)->toBe(['filp/whoops', 'phar-io/manifest', 'phar-io/version', 'phpstan/phpstan']);
41
});
42
+
43
+test('It return empty array if key not exist on parse all method', function () {
44
+ $actual = (new Parser(__DIR__ . '/../tests/assets/fakeInstalled.json'))->parseAll('xxx.ooo.xxx');
45
+ expect($actual)->toBe([]);
46
+});
0 commit comments