public function Framework_MockObjectTest::testStubForClassThatImplementsSerializableCanBeCreatedWithoutInvokingTheConstructor in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php \Framework_MockObjectTest::testStubForClassThatImplementsSerializableCanBeCreatedWithoutInvokingTheConstructor()
@ticket 171
See also
https://github.com/sebastianbergmann/phpunit-mock-objects/issues/171
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php, line 824
Class
- Framework_MockObjectTest
- @since Class available since Release 3.0.0
Code
public function testStubForClassThatImplementsSerializableCanBeCreatedWithoutInvokingTheConstructor() {
$this
->assertInstanceOf('ClassThatImplementsSerializable', $this
->getMockBuilder('ClassThatImplementsSerializable')
->disableOriginalConstructor()
->getMock());
}