1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-08 01:10:08 +01:00
Files
laravel-valet/tests/Drivers/BaseDriverTestCase.php
2022-12-11 13:04:36 -05:00

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;
}
}