@@ -35,7 +35,7 @@ public function testSuccess()
3535 'code ' => 200 ,
3636 'message ' => ResponseCodeEnum::fromValue (200 )->description ,
3737 'data ' => (object ) [],
38- 'error ' => (object )[],
38+ 'error ' => (object ) [],
3939 ]);
4040 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
4141 }
@@ -52,7 +52,7 @@ public function testCreated()
5252 'code ' => 201 ,
5353 'message ' => ResponseCodeEnum::fromValue (201 )->description ,
5454 'data ' => (object ) [],
55- 'error ' => (object )[],
55+ 'error ' => (object ) [],
5656 ]);
5757 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
5858 }
@@ -69,7 +69,7 @@ public function testAccepted()
6969 'code ' => 202 ,
7070 'message ' => ResponseCodeEnum::fromValue (202 )->description ,
7171 'data ' => (object ) [],
72- 'error ' => (object )[],
72+ 'error ' => (object ) [],
7373 ]);
7474 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
7575 }
@@ -86,7 +86,7 @@ public function testNoContent()
8686 'code ' => 204 ,
8787 'message ' => ResponseCodeEnum::fromValue (204 )->description ,
8888 'data ' => (object ) [],
89- 'error ' => (object )[],
89+ 'error ' => (object ) [],
9090 ]);
9191
9292 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
@@ -108,7 +108,7 @@ public function testSuccessWithArrayData()
108108 'code ' => 200 ,
109109 'message ' => ResponseCodeEnum::fromValue (200 )->description ,
110110 'data ' => $ data ,
111- 'error ' => (object )[],
111+ 'error ' => (object ) [],
112112 ]);
113113 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
114114 }
@@ -128,7 +128,7 @@ public function testSuccessWithResourceData()
128128 'nickname ' => $ user ->name ,
129129 'email ' => $ user ->email ,
130130 ],
131- 'error ' => (object )[],
131+ 'error ' => (object ) [],
132132 ]);
133133
134134 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
@@ -153,7 +153,7 @@ public function testSuccessWithCollectionData()
153153 'code ' => 200 ,
154154 'message ' => ResponseCodeEnum::fromValue (200 )->description ,
155155 'data ' => $ data ,
156- 'error ' => (object )[],
156+ 'error ' => (object ) [],
157157 ]);
158158 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
159159 }
@@ -196,7 +196,7 @@ public function testSuccessWithPaginatedData()
196196 'code ' => 200 ,
197197 'message ' => ResponseCodeEnum::fromValue (200 )->description ,
198198 'data ' => $ data ,
199- 'error ' => (object )[],
199+ 'error ' => (object ) [],
200200 ]);
201201
202202 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
@@ -212,7 +212,7 @@ public function testSuccessWithMessage()
212212 'code ' => 200 ,
213213 'message ' => '成功 ' ,
214214 'data ' => (object ) [],
215- 'error ' => (object )[],
215+ 'error ' => (object ) [],
216216 ]);
217217
218218 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
@@ -228,7 +228,7 @@ public function testSuccessWithCustomMessageAndCode()
228228 'code ' => ResponseCodeEnum::SERVICE_LOGIN_SUCCESS , // 返回自定义的业务码
229229 'message ' => ResponseCodeEnum::fromValue (ResponseCodeEnum::SERVICE_LOGIN_SUCCESS )->description , // 根据业务码取多语言的业务描述
230230 'data ' => (object ) [],
231- 'error ' => (object )[],
231+ 'error ' => (object ) [],
232232 ]);
233233
234234 $ this ->assertJsonStringEqualsJsonString ($ expectedJson , $ response ->getContent ());
0 commit comments