mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 01:10:08 +01:00
20 lines
431 B
PHP
20 lines
431 B
PHP
<?php
|
|
|
|
class BaseDriverTestCase extends Yoast\PHPUnitPolyfills\TestCases\TestCase
|
|
{
|
|
public function set_up(): void
|
|
{
|
|
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
|
}
|
|
|
|
public function projects(): array
|
|
{
|
|
return Filesystem::scanDir(__DIR__.'/projects');
|
|
}
|
|
|
|
public function projectDir(string $name): string
|
|
{
|
|
return __DIR__.'/projects/'.$name;
|
|
}
|
|
}
|