Skip to content

Commit de73e5c

Browse files
committed
Add more tests
1 parent 792ef56 commit de73e5c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/DebuggerTest.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function it_can_show_cache_events()
201201
}
202202

203203
/** @test */
204-
public function it_preserves_structure()
204+
public function it_preserves_object()
205205
{
206206
$this->app['router']->get('foo', function () {
207207
return response()->json([
@@ -214,4 +214,19 @@ public function it_preserves_structure()
214214
->assertStatus(200)
215215
->assertSeeText('"baz":{}');
216216
}
217+
218+
/** @test */
219+
public function it_preserves_array()
220+
{
221+
$this->app['router']->get('foo', function () {
222+
return response()->json([
223+
'foo' => 'bar',
224+
'baz' => [],
225+
]);
226+
});
227+
228+
$this->json('get', '/foo')
229+
->assertStatus(200)
230+
->assertSeeText('"baz":[]');
231+
}
217232
}

0 commit comments

Comments
 (0)