You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
This is the Codeigniter4-RoadRunner test case project, it is built by Codeigniter4, and has loaded the Codeigniter4-Roadrunner library class inside the upper directory included in the `src` in.
4
4
5
-
You can run the test right after you modified the Codeigniter4-Roadrunner project files, verify if the funtions are complete; Or wirte some related program logic in this project to assist your development.
5
+
You can run the test right after you modified the Codeigniter4-Roadrunner project files, verify if the functions are complete; Or write some related program logic in this project to assist your development.
6
6
7
7
## Test Range
8
8
9
-
This test case takes the acutal sent CURL Request as test approach, because what Codeigniter4-Roadrunner provide is the synchronization on HTTP Request and Response objects of Roadrunner-Worker and Codeigniter4 (Since Codeigniter4 doesn't implement PSR-7 interface standard). In other words, we just have to verify if the server workes as what we wanted under the actual HTTP connection.
9
+
This test case takes the actual sent CURL Request as test approach, because what Codeigniter4-Roadrunner provide is the synchronization on HTTP Request and Response objects of Roadrunner-Worker and Codeigniter4 (Since Codeigniter4 doesn't implement PSR-7 interface standard). In other words, we just have to verify if the server workes as what we wanted under the actual HTTP connection.
10
10
11
11
1. BasicTest:Test HTTP `GET`、`POST`、`query`、`form-data`, and the `php echo` output command, and if `header` can process normally and give us outputs.
12
12
2. FileUploadTest:Test if file upload class can work correctly and move files.
@@ -15,23 +15,23 @@ This test case takes the acutal sent CURL Request as test approach, because what
15
15
16
16
## Requirements
17
17
18
-
We recommend you to use the latest PHPUnit. While we're writing scripts, the version we're running at is version `9.5.10`. You might need to use Composer to download the library your project needed back to your develop environment.
18
+
We recommend you to use the latest PHPUnit. While we're writing scripts, the version we're running at is version `9.5.19`. You might need to use Composer to download the library your project needed back to your develop environment.
19
19
20
20
```
21
21
composer install
22
22
```
23
23
24
-
Next, you must initiallize the environment that Roadrunner needed.
24
+
Next, you must initialize the environment that Roadrunner needed.
25
25
26
26
```
27
27
php spark ciroad:init
28
28
```
29
29
30
-
Finally, please confirm if the directory has these threee files including `rr`(if your developing under Windows, you will see `rr.exe`), `rr.yaml`, `psr-worker.php`.
30
+
Finally, please confirm if the directory has these three files including `rr`(if you are developing under Windows, you will see `rr.exe`), `.rr.yaml`, `psr-worker.php`.
31
31
32
32
## Run Tests
33
33
34
-
Before running tests, please open `rr.yaml` file first, and ensure this configuration file has these settings:
34
+
Before running tests, please open `.rr.yaml` file first, and ensure this configuration file has these settings:
35
35
36
36
```yaml
37
37
rpc:
@@ -49,12 +49,12 @@ http:
49
49
num_workers: 1
50
50
```
51
51
52
-
Since Roadrunner-Worker lasts inside RAMs, HTTP requests will reuse Workers to process. Hence we need to test the stability under the environment with only one worker to prove that it can work properly under several workers.
52
+
Since Roadrunner-Worker lasts inside RAMs, HTTP requests will reuse Workers to process. Hence, we need to test the stability under the environment with only one worker to prove that it can work properly under several workers.
53
53
54
54
Next, you have to open a terminal and cd to the root directory, type the commands below to run the Roadrunner server:
55
55
56
56
```
57
-
rr serve -d
57
+
./rr serve -d
58
58
```
59
59
60
60
Finally, open another new terminal and cd to the test project, type the commands below to run tests:
@@ -67,4 +67,4 @@ If you're running tests under Windows CMD, your command should be like this:
0 commit comments