@@ -175,9 +175,9 @@ public function testPreviousError()
175
175
176
176
$ flattened = FlattenException::createFromThrowable ($ exception )->getPrevious ();
177
177
178
- $ this ->assertEquals ($ flattened ->getMessage (), ' Oh noes! ' , 'The message is copied from the original exception. ' );
179
- $ this ->assertEquals ($ flattened ->getCode (), 42 , 'The code is copied from the original exception. ' );
180
- $ this ->assertEquals ($ flattened ->getClass (), ' ParseError ' , 'The class is set to the class of the original exception ' );
178
+ $ this ->assertEquals (' Oh noes! ' , $ flattened ->getMessage (), 'The message is copied from the original exception. ' );
179
+ $ this ->assertEquals (42 , $ flattened ->getCode (), 'The code is copied from the original exception. ' );
180
+ $ this ->assertEquals (' ParseError ' , $ flattened ->getClass (), 'The class is set to the class of the original exception ' );
181
181
}
182
182
183
183
/**
@@ -303,7 +303,7 @@ function () {},
303
303
$ this ->assertSame (['resource ' , 'stream ' ], $ array [$ i ++]);
304
304
305
305
$ args = $ array [$ i ++];
306
- $ this ->assertSame ($ args [0 ], ' object ' );
306
+ $ this ->assertSame (' object ' , $ args [0 ]);
307
307
$ this ->assertTrue ('Closure ' === $ args [1 ] || is_subclass_of ($ args [1 ], '\Closure ' ), 'Expect object class name to be Closure or a subclass of Closure. ' );
308
308
309
309
$ this ->assertSame (['array ' , [['integer ' , 1 ], ['integer ' , 2 ]]], $ array [$ i ++]);
@@ -318,8 +318,8 @@ function () {},
318
318
$ this ->assertSame (['float ' , INF ], $ array [$ i ++]);
319
319
320
320
// assertEquals() does not like NAN values.
321
- $ this ->assertEquals ($ array [$ i ][0 ], ' float ' );
322
- $ this ->assertNan ($ array [$ i++ ][1 ]);
321
+ $ this ->assertEquals (' float ' , $ array [$ i ][0 ]);
322
+ $ this ->assertNan ($ array [$ i ][1 ]);
323
323
}
324
324
325
325
public function testRecursionInArguments ()
@@ -358,7 +358,7 @@ public function testTooBigArray()
358
358
$ flattened = FlattenException::createFromThrowable ($ exception );
359
359
$ trace = $ flattened ->getTrace ();
360
360
361
- $ this ->assertSame ($ trace [ 1 ][ ' args ' ][ 0 ], [ ' array ' , ['array ' , '*SKIPPED over 10000 entries* ' ]]);
361
+ $ this ->assertSame ([ ' array ' , ['array ' , '*SKIPPED over 10000 entries* ' ]], $ trace [ 1 ][ ' args ' ][ 0 ]);
362
362
363
363
$ serializeTrace = serialize ($ trace );
364
364
0 commit comments