Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 29, 2024
1 parent bed5d91 commit b0365ff
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions types/functions.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
<?php

use function Orchestra\Testbench\default_skeleton_path;
use function Orchestra\Testbench\laravel_version_compare;
use function Orchestra\Testbench\package_path;
use function Orchestra\Testbench\phpunit_version_compare;
use function Orchestra\Testbench\workbench_path;
use function PHPStan\Testing\assertType;

assertType('string', default_skeleton_path());
assertType('string', default_skeleton_path('app'));
assertType('string', default_skeleton_path('app', '.gitkeep'));
assertType('string', default_skeleton_path(['app', '.gitkeep']));

use function Orchestra\Testbench\package_path;

assertType('string', package_path());
assertType('string', package_path('laravel'));
assertType('string', package_path('laravel', 'app', '.gitkeep'));
assertType('string', package_path(['laravel', 'app', '.gitkeep']));

use function Orchestra\Testbench\workbench_path;

assertType('string', workbench_path());
assertType('string', workbench_path('app'));
assertType('string', workbench_path('app', 'Providers'));
assertType('string', workbench_path(['app', 'Providers']));

use function Orchestra\Testbench\laravel_version_compare;

assertType('bool', laravel_version_compare('7.0.0', '>='));
assertType('int', laravel_version_compare('7.0.0'));

use function Orchestra\Testbench\phpunit_version_compare;

assertType('bool', phpunit_version_compare('9.0.0', '>='));
assertType('int', phpunit_version_compare('9.0.0'));

0 comments on commit b0365ff

Please sign in to comment.