Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Apply fixes from StyleCI #62

Merged
merged 1 commit into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/Symfony/Parsers/Exception/NoWithDataHideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public function testStructureErrors()

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
$this->response(null, 0, ['bar' => 'Bar'])->getJson());
$this->response(null, 0, ['bar' => 'Bar'])->getJson()
);

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
Expand Down
3 changes: 2 additions & 1 deletion tests/Symfony/Parsers/Exception/NoWithDataNoHideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public function testStructureErrors()

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
$this->response(null, 0, ['bar' => 'Bar'])->getJson());
$this->response(null, 0, ['bar' => 'Bar'])->getJson()
);

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
Expand Down
7 changes: 4 additions & 3 deletions tests/Symfony/Parsers/Exception/NoWithNoDataHideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ public function testStructureSuccess()
$this->assertSame([], $this->response([], null, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, null, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 200, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 200, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 200, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 300, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 300, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 300, ['bar' => 'Bar'])->getJson());
Expand All @@ -101,7 +101,8 @@ public function testStructureErrors()

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
$this->response(null, 0, ['bar' => 'Bar'])->getJson());
$this->response(null, 0, ['bar' => 'Bar'])->getJson()
);

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
Expand Down
7 changes: 4 additions & 3 deletions tests/Symfony/Parsers/Exception/NoWithNoDataNoHideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ public function testStructureSuccess()
$this->assertSame([], $this->response([], null, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, null, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 200, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 200, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 200, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 300, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 300, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 300, ['bar' => 'Bar'])->getJson());
Expand All @@ -103,7 +103,8 @@ public function testStructureErrors()

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
$this->response(null, 0, ['bar' => 'Bar'])->getJson());
$this->response(null, 0, ['bar' => 'Bar'])->getJson()
);

$this->assertSame(
['error' => ['type' => 'Exception', 'data' => 'Whoops! Something went wrong.']],
Expand Down
6 changes: 3 additions & 3 deletions tests/Symfony/Parsers/Exception/WithNoDataHideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ public function testType()

public function testStructureSuccess()
{
$this->assertSame(null, $this->response(null, null, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, null, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', null, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], null, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, null, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 200, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 200, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 200, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 300, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 300, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 300, ['bar' => 'Bar'])->getJson());
Expand Down
6 changes: 3 additions & 3 deletions tests/Symfony/Parsers/Exception/WithNoDataNoHideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ public function testType()

public function testStructureSuccess()
{
$this->assertSame(null, $this->response(null, null, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, null, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', null, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], null, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, null, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 200, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 200, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 200, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 200, ['bar' => 'Bar'])->getJson());

$this->assertSame(null, $this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertNull($this->response(null, 300, ['bar' => 'Bar'])->getJson());
$this->assertSame('foo', $this->response('foo', 300, ['bar' => 'Bar'])->getJson());
$this->assertSame([], $this->response([], 300, ['bar' => 'Bar'])->getJson());
$this->assertSame(0, $this->response(0, 300, ['bar' => 'Bar'])->getJson());
Expand Down