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

Run artisan command.

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

Exit cleanly from a test process.

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

Create Hypervel application instance.

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

Get the migration path by type.

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

Get the path to the default skeleton application.

at line 144
array
defined_environment_variables()

Get defined environment variables to pass to subprocess.

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

Ensure the provided application is available or throw an exception.

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

Compare the installed Hypervel framework version.

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

Determine if running via the Testbench CLI.

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

Join the given paths together.

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

Load migration paths.

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

Get the path to the package root folder.

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

Compare the installed version of a package.

at line 480
array
parse_environment_variables(iterable $variables)

Get default environment variables.

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

Determine the PHP binary.

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

Compare the installed PHPUnit version.

at line 518
string
quote_environment_value(string $value)

Quote a string for a dotenv entry.

at line 330
void
refresh_router_lookups(Router $router)

Refresh the router's name and action lookup tables.

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

Run remote action using Testbench CLI.

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

Exit cleanly from a test process.

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

Get the path to the testbench package folder.

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

Get the package-relative path to the testbench folder.

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

Transform realpath to alias path.

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

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

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

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

at line 158
array
workbench()

Get the workbench configuration.

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

Get the path to the workbench folder.

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

Get the package-relative path to the workbench folder.

at line 467