Skip to content

Commit 7dcf88b

Browse files
committed
test fixed
1 parent 24ab247 commit 7dcf88b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/Unit/WhiteBox/Handler/JsonToStdErrHandlerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testWrite(): void
8080
->setMethodsExcept(['write'])
8181
->getMock();
8282
$mock->expects($this->exactly(1))->method('writeToStdErr');
83-
$record = ['any', 'level' => Logger::INFO];
83+
$record = ['any', 'level' => 0];
8484
$mock->write($record);
8585
$mock->write($record);
8686

@@ -91,7 +91,7 @@ public function testWrite(): void
9191
->getMock();
9292
$mock->expects($this->exactly(2))->method('writeToStdErr');
9393
$mock->method('getMessage')->willReturn('{"first":"message"}', '{"first":"message"}','{"second":"message"}');
94-
$record = ['any', 'level' => Logger::INFO];
94+
$record = ['any', 'level' => 0];
9595
$mock->write($record);
9696
$mock->write($record);
9797
$mock->write($record);
@@ -211,12 +211,12 @@ public function providerDump(): Generator
211211
];
212212
yield [ // 9
213213
'value' => $object,
214-
'expected' => '{#262 +"foo": {#261 …1} +"bar": {#258 …1} }',
214+
'expected' => '{#262 +"foo": {#261 …1} +"bar": {#259 …1} }',
215215
'level' => 1,
216216
];
217217
yield [
218218
'value' => $object,
219-
'expected' => '{#262 +"foo": {#261 +"baz": {#260} } +"bar": {#258 +"baz": {#259} } }',
219+
'expected' => '{#262 +"foo": {#261 +"baz": {#260} } +"bar": {#259 +"baz": {#258} } }',
220220
'level' => 2,
221221
];
222222
$value = [
@@ -239,7 +239,7 @@ public function providerDump(): Generator
239239
];
240240
yield [
241241
'value' => $value,
242-
'expected' => '[ "first-1" => "string" "first-2" => 12345 "first-3" => 1.2345 "first-4" => true "first-5" => [ "string" ] "first-6" => {#262 +"foo": {#261 …1} +"bar": {#258 …1} } ]',
242+
'expected' => '[ "first-1" => "string" "first-2" => 12345 "first-3" => 1.2345 "first-4" => true "first-5" => [ "string" ] "first-6" => {#262 +"foo": {#261 …1} +"bar": {#259 …1} } ]',
243243
'level' => 2,
244244
];
245245
// тест на глубину - во что будут сериализованы многомерные массивы:

tests/Unit/WhiteBox/Processor/StopExecutionWhenProblemProcessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function isProcessProvider(): array
5959
'expectedReturn' => true, // ожидается завершение скрипта
6060
],
6161
[
62-
'record' => ['level' => Logger::INFO],
62+
'record' => ['level' => 0],
6363
'isDisableOnce' => false,
6464
'expectedReturn' => false,
6565
],

0 commit comments

Comments
 (0)