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:
Dion Hulse 2015-12-29 05:43:05 +00:00
parent f46c0a637b
commit 18a6a047bd
1 changed files with 4 additions and 4 deletions

View File

@ -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' ) ) );
}