Skip to content

Commit

Permalink
Sync with changes in sebastian/exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 18, 2023
1 parent 05a7328 commit 70e400e
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 104 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"sebastian/comparator": "^5.0",
"sebastian/diff": "^5.0",
"sebastian/environment": "^6.0",
"sebastian/exporter": "^5.0",
"sebastian/exporter": "^5.1",
"sebastian/global-state": "^6.0.1",
"sebastian/object-enumerator": "^5.0",
"sebastian/recursion-context": "^5.0",
Expand Down
12 changes: 6 additions & 6 deletions tests/end-to-end/event/error-handler-can-be-disabled.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ Test Suite Started (PHPUnit\TestFixture\Event\ErrorHandlerCanBeDisabled\FooTest,
Test Preparation Started (PHPUnit\TestFixture\Event\ErrorHandlerCanBeDisabled\FooTest::testMethodA)
Test Prepared (PHPUnit\TestFixture\Event\ErrorHandlerCanBeDisabled\FooTest::testMethodA)
Assertion Succeeded (Constraint: exception of type "Exception", Value: Exception Object #%d (
'message' => 'fopen(%s/missing/directory): Failed to open stream: No such file or directory'
'string' => ''
'code' => 0
'file' => '%s/src/Foo.php'
'line' => 26
'previous' => null
'message' => 'fopen(%s/missing/directory): Failed to open stream: No such file or directory',
'string' => '',
'code' => 0,
'file' => '%s/src/Foo.php',
'line' => 26,
'previous' => null,
))
Assertion Succeeded (Constraint: exception message contains 'Failed to open stream', Value: 'fopen(%s/missing/directory): Failed to open stream: No such file or directory')
Test Passed (PHPUnit\TestFixture\Event\ErrorHandlerCanBeDisabled\FooTest::testMethodA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This test modified global state but was not expected to do so
--- Global variables before the test
+++ Global variables after the test
%A
+ 'variable' => 'value'
+ 'variable' => 'value',
%A
Test Finished (PHPUnit\TestFixture\Event\RiskyBecauseGlobalStateModificationTest::testOne)
Test Suite Finished (PHPUnit\TestFixture\Event\RiskyBecauseGlobalStateModificationTest, 1 test)
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/event/risky-with-multiple-reasons.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This test modified global state but was not expected to do so
--- Global variables before the test
+++ Global variables after the test
%A
+ 'variable' => 'value'
+ 'variable' => 'value',
%A
Test Considered Risky (PHPUnit\TestFixture\Event\RiskyWithMultipleReasonsTest::testOne)
This test did not perform any assertions
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Event/Emitter/DispatchingEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ public function notify(Test\TestProxyCreated $event): void
$this->assertInstanceOf(Test\TestProxyCreated::class, $event);

$this->assertSame($className, $event->className());
$this->assertSame("Array &0 (\n 0 => 'foo'\n)", $event->constructorArguments());
$this->assertSame("Array &0 [\n 0 => 'foo',\n]", $event->constructorArguments());
}

public function testTestTestStubCreatedDispatchesTestDoubleTestStubCreatedEvent(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static function provider(): array
[
true,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
)
is equal to Array &%d [
0 => 'value',
]
EOT,
'',
'',
Expand All @@ -40,10 +40,10 @@ public static function provider(): array
[
true,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
1 => 'another-value'
)
is equal to Array &%d [
0 => 'value',
1 => 'another-value',
]
EOT,
'',
'',
Expand All @@ -55,7 +55,7 @@ public static function provider(): array
true,
<<<'EOT'
is equal to stdClass Object #%d (
'foo' => 'bar'
'foo' => 'bar',
)
EOT,
'',
Expand Down Expand Up @@ -157,9 +157,9 @@ public static function provider(): array
[
false,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
)
is equal to Array &%d [
0 => 'value',
]
EOT,
'Failed asserting that two arrays are equal.',
<<<'EOT'
Expand All @@ -181,7 +181,7 @@ public static function provider(): array
false,
<<<'EOT'
is equal to stdClass Object #%d (
'foo' => 'bar'
'foo' => 'bar',
)
EOT,
'Failed asserting that two objects are equal.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static function provider(): array
[
true,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
)
is equal to Array &%d [
0 => 'value',
]
EOT,
'',
'',
Expand All @@ -40,10 +40,10 @@ public static function provider(): array
[
true,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
1 => 'another-value'
)
is equal to Array &%d [
0 => 'value',
1 => 'another-value',
]
EOT,
'',
'',
Expand All @@ -55,7 +55,7 @@ public static function provider(): array
true,
<<<'EOT'
is equal to stdClass Object #%d (
'foo' => 'bar'
'foo' => 'bar',
)
EOT,
'',
Expand Down Expand Up @@ -157,9 +157,9 @@ public static function provider(): array
[
false,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
)
is equal to Array &%d [
0 => 'value',
]
EOT,
'Failed asserting that two arrays are equal.',
<<<'EOT'
Expand Down
24 changes: 12 additions & 12 deletions tests/unit/Framework/Constraint/Equality/IsEqualTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static function provider(): array
[
true,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
)
is equal to Array &%d [
0 => 'value',
]
EOT,
'',
'',
Expand All @@ -41,7 +41,7 @@ public static function provider(): array
true,
<<<'EOT'
is equal to stdClass Object #%d (
'foo' => 'bar'
'foo' => 'bar',
)
EOT,
'',
Expand Down Expand Up @@ -143,9 +143,9 @@ public static function provider(): array
[
false,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
)
is equal to Array &%d [
0 => 'value',
]
EOT,
'Failed asserting that two arrays are equal.',
<<<'EOT'
Expand All @@ -166,10 +166,10 @@ public static function provider(): array
[
false,
<<<'EOT'
is equal to Array &%d (
0 => 'value'
1 => 'another-value'
)
is equal to Array &%d [
0 => 'value',
1 => 'another-value',
]
EOT,
'Failed asserting that two arrays are equal.',
<<<'EOT'
Expand All @@ -193,7 +193,7 @@ public static function provider(): array
false,
<<<'EOT'
is equal to stdClass Object #%d (
'foo' => 'bar'
'foo' => 'bar',
)
EOT,
'Failed asserting that two objects are equal.',
Expand Down
24 changes: 12 additions & 12 deletions tests/unit/Framework/Constraint/Equality/IsEqualWithDeltaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public static function provider(): array
[
true,
<<<'EOT'
is equal to Array &%d (
0 => 1.0
) with delta <0.000000>
is equal to Array &%d [
0 => 1.0,
] with delta <0.000000>
EOT,
'',
'',
Expand All @@ -61,9 +61,9 @@ public static function provider(): array
[
true,
<<<'EOT'
is equal to Array &%d (
0 => 1.0
) with delta <0.100000>
is equal to Array &%d [
0 => 1.0,
] with delta <0.100000>
EOT,
'',
'',
Expand All @@ -76,7 +76,7 @@ public static function provider(): array
true,
<<<'EOT'
is equal to stdClass Object #%d (
'property' => 1.0
'property' => 1.0,
) with delta <0.000000>
EOT,
'',
Expand All @@ -90,7 +90,7 @@ public static function provider(): array
true,
<<<'EOT'
is equal to stdClass Object #%d (
'property' => 1.0
'property' => 1.0,
) with delta <0.100000>
EOT,
'',
Expand All @@ -113,9 +113,9 @@ public static function provider(): array
[
false,
<<<'EOT'
is equal to Array &%d (
0 => 1.0
) with delta <0.000000>
is equal to Array &%d [
0 => 1.0,
] with delta <0.000000>
EOT,
'Failed asserting that two arrays are equal.',
<<<'EOT'
Expand All @@ -138,7 +138,7 @@ public static function provider(): array
false,
<<<'EOT'
is equal to stdClass Object #%d (
'property' => 1.0
'property' => 1.0,
) with delta <0.000000>
EOT,
'Failed asserting that two objects are equal.',
Expand Down
Loading

0 comments on commit 70e400e

Please sign in to comment.