From 43d1a9a6583a344dd394584796436f7a69f8e228 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk Date: Wed, 19 Dec 2018 21:41:30 +0000 Subject: [PATCH] Use require_once instead --- src/Handlers.php | 2 +- src/entryPoint.php | 3 ++- src/repl.php | 5 +++-- test/Test.php | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Handlers.php b/src/Handlers.php index 89d0a40..36c38ea 100644 --- a/src/Handlers.php +++ b/src/Handlers.php @@ -1,6 +1,6 @@ '; $input = fread(STDIN, 80); // Read up to 80 characters or a newline $trimmed = trim($input); - echo $msg_id, ' > ' , reply_user($room_id, $msg_id, $trimmed) , "\n"; + echo reply_user($room_id, $msg_id, $trimmed) , "\n"; $msg_id++; } while($trimmed !== "exit"); \ No newline at end of file diff --git a/test/Test.php b/test/Test.php index b8fb36d..27307bd 100644 --- a/test/Test.php +++ b/test/Test.php @@ -7,7 +7,7 @@ */ use PHPUnit\Framework\TestCase; -require '../src/entryPoint.php'; +require_once '../src/entryPoint.php'; class Test extends TestCase {