kenjis / codeigniter-testing-guide

CodeIgniter Testing Guide
0 stars 2 forks source link

PHP Built-in server doesn't use testing environment #3

Open DakuTree opened 8 years ago

DakuTree commented 8 years ago

"10.3 - Running the Web Server" mentions using "CI_ENV=testing php -S 127.0.0.1:8000 index.php" to run the PHP built-in server under the testing environment. This doesn't actually use the testing environment due to a bug: https://bugs.php.net/bug.php?id=67808

kenjis commented 8 years ago

@DakuTree Thank you for your reporting. I confirmed the bug.

I will fix the description in the book at the next release.

kenjis commented 7 years ago

@DakuTree Sorry to be late.

I recommend you use the following scripts:

And,

$ CI_ENV=testing bin/server.sh

I'm now updating the entire book.