Last active
December 31, 2015 21:49
-
-
Save chillu/8048900 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyFakeObject extends FakeObject{ | |
public function getSchema() { | |
return array( | |
'id' => null, | |
'personalDetails' => new FakeObject(array( | |
'firstName' => null, | |
'lastName' => null | |
)) | |
); | |
} | |
public function getDefaults() { | |
return array_merge_recursive( | |
$this->getSchema(), | |
array( | |
'firstName' => 'Joe' | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment