Skip to content

Commit 3516afb

Browse files
authored
Make sure file is not empty, test outside public (#179)
1 parent ca294c4 commit 3516afb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/SwooleClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function test_cant_serve_static_files_through_symlink_using_directory_tra
135135
{
136136
$client = new SwooleClient;
137137

138-
$request = Request::create('/symlink/../files/bar.txt', 'GET');
138+
$request = Request::create('/symlink/../foo.txt', 'GET');
139139

140140
$context = new RequestContext([
141141
'publicPath' => __DIR__.'/public/files',

tests/public/files/bar.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bar

0 commit comments

Comments
 (0)