Namespaces

Classes

Base test case for package testing with testbench features.

Functions

void
after_resolving(Application $app, string $name, Closure|null $callback = null)

Register after resolving callback.

at line 52
int
artisan(TestCase|Application $context, string $command, array $parameters = [])

Run artisan command.

at line 98
never
bail(object|null $testCase, string|int $status = 0)

Exit cleanly from a test process.

at line 117
container(string|null $basePath = null, callable|null $resolvingCallback = null, array $options = [], Config|null $config = null)

Create Hypervel application instance.

at line 78
string
default_migration_path(string|null $type = null)

Get the migration path by type.

at line 208
string|false
default_skeleton_path(array|string $path = '')

Get the path to the default skeleton application.

at line 177
array
defined_environment_variables()

Get defined environment variables to pass to subprocess.

at line 339
string|false
filename_from_classname(string $className)

Resolve filename from classname.

at line 254
hypervel_or_fail(Application|null $app, string|null $caller = null)
internal

Ensure the provided application is available or throw an exception.

at line 672
bool
hypervel_vendor_exists(Application $app, string|null $workingPath = null)

Determine if the Hypervel application's vendor directory already matches the working vendor path.

at line 399
int|bool
hypervel_version_compare(string $version, string|null $operator = null)

Compare the installed Hypervel framework version.

at line 599
bool
in_parallel_testing()

Determine if current test is handled via parallel testing.

at line 696
bool
is_testbench_cli(bool|null $dusk = null)

Determine if running via the Testbench CLI.

at line 711
string
join_paths(string|null $basePath, string ...$paths)

Join the given paths together.

at line 230
void
load_migration_paths(Application $app, array|string $paths)

Load migration paths.

at line 156
string
package_path(array|string $path = '')

Get the path to the package root folder.

at line 299
int|bool
package_version_compare(string $package, string $version, string|null $operator = null)

Compare the installed version of a package.

at line 557
array
parse_environment_variables(iterable $variables)

Get default environment variables.

at line 360
string
php_binary(bool $escape = false)

Determine the PHP binary.

at line 728
int|bool
php_version_compare(string $version, string|null $operator = null)

Compare the running PHP version.

at line 624
int|bool
phpunit_version_compare(string $version, string|null $operator = null)

Compare the installed PHPUnit version.

at line 652
string
quote_environment_value(string $value)

Quote a string for a dotenv entry.

at line 385
void
refresh_router_lookups(Router $router)

Refresh the router's name and action lookup tables.

at line 142
remote(Closure|array|string $command, array|string $env = [], bool|null $tty = null)

Run remote action using Testbench CLI.

at line 747
never
terminate(object|null $testCase, string|int $status = 0)

Exit cleanly from a test process.

at line 129
string
testbench_path(array|string $path = '')

Get the path to the testbench package folder.

at line 272
string
testbench_relative_path(array|string $path = '')

Get the package-relative path to the testbench folder.

at line 513
string
transform_realpath_to_relative(string $path, string|null $workingPath = null, string $prefix = '')

Transform realpath to alias path.

at line 415
string|null
transform_relative_path(string|null $path, string $workingPath)

Transform relative path to an absolute path using the given working path.

at line 439
bool
uses_default_skeleton(string|null $basePath = null)

Determine if application is bootstrapped using Testbench's default skeleton.

at line 191
array
workbench()

Get the workbench configuration.

at line 463
string
workbench_path(array|string $path = '')

Get the path to the workbench folder.

at line 482
string
workbench_relative_path(array|string $path = '')

Get the package-relative path to the workbench folder.

at line 530