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 39
int
artisan(TestCase|Application $context, string $command, array $parameters = [])

Run artisan command.

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

Exit cleanly from a test process.

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

Create Hypervel application instance.

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

Get the migration path by type.

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

Get the path to the default skeleton application.

at line 141
array
defined_environment_variables()

Get defined environment variables to pass to subprocess.

at line 294
hypervel_or_fail(mixed $app, string|null $caller = null)

Ensure the provided application is available or throw an exception.

at line 520
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 335
int|bool
hypervel_version_compare(string $version, string|null $operator = null)

Compare the installed Hypervel framework version.

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

Determine if running via the Testbench CLI.

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

Join the given paths together.

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

Load migration paths.

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

Get the path to the package root folder.

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

Compare the installed version of a package.

at line 463
array
parse_environment_variables(iterable $variables)

Get default environment variables.

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

Determine the PHP binary.

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

Compare the installed PHPUnit version.

at line 501
void
refresh_router_lookups(Router $router)

Refresh the router's name and action lookup tables.

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

Run remote action using Testbench CLI.

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

Exit cleanly from a test process.

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

Get the path to the testbench package folder.

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

Get the package-relative path to the testbench folder.

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

Transform realpath to alias path.

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

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

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

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

at line 159
array
workbench()

Get the workbench configuration.

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

Get the path to the workbench folder.

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

Get the package-relative path to the workbench folder.

at line 455