Skip to content

Commit

Permalink
update tests lines
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Dec 9, 2023
1 parent e3311f4 commit 90ed33f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/Exception/Renderer/HtmlRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function testOutputWithTrace(): void
<div><strong>Code:</strong> 0</div>
<div><strong>Message:</strong> </div>
<div><strong>File:</strong> {$file}</div>
<div><strong>Line:</strong> 129</div>
<div><strong>Line:</strong> 127</div>
<h2>Trace</h2>
EXPECTED;
static::assertStringContainsString($expected, $output);
Expand Down
2 changes: 1 addition & 1 deletion tests/Exception/Renderer/PlainTextRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testOutputWithTrace(): void
Code: 403
Message: Forbidden action
File: {$file}
Line: 44
Line: 42
Trace:
EXPECTED;

Expand Down
8 changes: 4 additions & 4 deletions tests/Exception/Whoops/Renderer/JsonRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testOutput(): void
"message": "403 Forbidden",
"code": 403,
"file": "{$file}",
"line": 31,
"line": 29,
"trace": [
{
EXPECTED;
Expand Down Expand Up @@ -76,7 +76,7 @@ public function testNotPrettifiedOutput(): void
. '"message":"403 Forbidden",'
. '"code":403,'
. '"file":"' . __FILE__ . '",'
. '"line":63,'
. '"line":61,'
. '"trace":[{';
static::assertStringContainsString($expected, $output);
}
Expand Down Expand Up @@ -107,7 +107,7 @@ public function testNoTraceOutput(): void
"message": "403 Forbidden",
"code": 403,
"file": "{$file}",
"line": 89
"line": 87
}
]
}
Expand Down Expand Up @@ -137,7 +137,7 @@ public function testNotPrettifiedNoTraceOutput(): void
. '"message":"403 Forbidden",'
. '"code":403,'
. '"file":"' . __FILE__ . '",'
. '"line":123'
. '"line":121'
. '}]}';
static::assertEquals($expected, $output);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Exception/Whoops/Renderer/PlainTextRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testOutput(): void
Code: 501
Message: 501 Not Implemented
File: {$file}
Line: 33
Line: 31
Trace:
EXPECTED;
static::assertStringContainsString($expected, $output);
Expand Down
8 changes: 4 additions & 4 deletions tests/Exception/Whoops/Renderer/XmlRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testOutput(): void
<message><![CDATA[403 Forbidden]]></message>
<code>403</code>
<file>{$file}</file>
<line>31</line>
<line>29</line>
<trace>
EXPECTED;
static::assertStringContainsString($expected, $output);
Expand Down Expand Up @@ -76,7 +76,7 @@ public function testNotPrettifiedOutput(): void
. '<message><![CDATA[403 Forbidden]]></message>'
. '<code>403</code>'
. '<file>' . __FILE__ . '</file>'
. '<line>62</line>'
. '<line>60</line>'
. '<trace>';
static::assertStringContainsString($expected, $output);
}
Expand Down Expand Up @@ -107,7 +107,7 @@ public function testNoTraceOutput(): void
<message><![CDATA[403 Forbidden]]></message>
<code>403</code>
<file>{$file}</file>
<line>89</line>
<line>87</line>
</error>

EXPECTED;
Expand Down Expand Up @@ -137,7 +137,7 @@ public function testNotPrettifiedNoTraceOutput(): void
. '<message><![CDATA[403 Forbidden]]></message>'
. '<code>403</code>'
. '<file>' . __FILE__ . '</file>'
. '<line>122</line>'
. '<line>120</line>'
. '</error>' . "\n";
static::assertEquals($expected, $output);
}
Expand Down

0 comments on commit 90ed33f

Please sign in to comment.