Tests: After [36100] use an object style which is compatible with PHP5 `get_object_vars()`.
See #35058. git-svn-id: https://develop.svn.wordpress.org/trunk@36117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f46c0a637b
commit
18a6a047bd
|
@ -38,12 +38,12 @@ class Tests_Formatting_MapDeep extends WP_UnitTestCase {
|
|||
$this->assertEquals( array(
|
||||
'var0' => 'ababa',
|
||||
'var1' => (object) array(
|
||||
'xbaba',
|
||||
'var0' => 'xbaba',
|
||||
),
|
||||
), map_deep( array(
|
||||
'var0' => 'a',
|
||||
'var1' => (object) array(
|
||||
'x',
|
||||
'var0' => 'x',
|
||||
),
|
||||
), array( $this, 'append_baba' ) ) );
|
||||
}
|
||||
|
@ -84,12 +84,12 @@ class Tests_Formatting_MapDeep extends WP_UnitTestCase {
|
|||
$this->assertEquals( (object) array(
|
||||
'var0' => 'ababa',
|
||||
'var1' => (object) array(
|
||||
'xbaba',
|
||||
'var0' => 'xbaba',
|
||||
),
|
||||
), map_deep( (object) array(
|
||||
'var0' => 'a',
|
||||
'var1' => (object) array(
|
||||
'x',
|
||||
'var0' => 'x',
|
||||
),
|
||||
), array( $this, 'append_baba' ) ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue