1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2022-12-03 23:11:03 +00:00
parent 59967c3068
commit 0c27c62cec
3 changed files with 9 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ public function test_it_serves_directory_with_index_php()
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
$this->assertEquals(
$projectPath . '/about/index.php',
$projectPath.'/about/index.php',
$driver->frontControllerPath($projectPath, 'my-site', '/about')
);
}
@@ -47,7 +47,7 @@ public function test_it_routes_to_index_if_404()
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
$this->assertEquals(
$projectPath . '/index.php',
$projectPath.'/index.php',
$driver->frontControllerPath($projectPath, 'my-site', '/not-a-real-url')
);
}
@@ -60,7 +60,7 @@ public function test_it_serves_directory_with_index_html()
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
$this->assertEquals(
$projectPath . '/team/index.html',
$projectPath.'/team/index.html',
$driver->isStaticFile($projectPath, 'my-site', '/team')
);
}
@@ -73,7 +73,7 @@ public function test_it_serves_static_files()
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
$this->assertEquals(
$projectPath . '/assets/document.txt',
$projectPath.'/assets/document.txt',
$driver->isStaticFile($projectPath, 'my-site', '/assets/document.txt')
);
}

View File

@@ -26,7 +26,7 @@ public function test_it_serves_php_files_from_public()
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
$this->assertEquals(
$projectPath . '/public/file-in-public.php',
$projectPath.'/public/file-in-public.php',
$driver->frontControllerPath($projectPath, 'my-site', '/file-in-public.php')
);
}
@@ -52,7 +52,7 @@ public function test_it_serves_directory_with_index_php()
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
$this->assertEquals(
$projectPath . '/public/about/index.php',
$projectPath.'/public/about/index.php',
$driver->frontControllerPath($projectPath, 'my-site', '/about')
);
}
@@ -65,7 +65,7 @@ public function test_it_route_to_public_index_if_404()
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
$this->assertEquals(
$projectPath . '/public/index.php',
$projectPath.'/public/index.php',
$driver->frontControllerPath($projectPath, 'my-site', '/not-a-real-url')
);
}