public function Framework_MockBuilderTest::testByDefaultOriginalCloneIsPreserved

File

drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php, line 116

Class

Framework_MockBuilderTest
@package PHPUnit_MockObject @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com> @author Sebastian Bergmann <sb@sebastian-bergmann.de> @copyright 2010-2013 Sebastian Bergmann <sb@sebastian-bergmann.de> @license …

Code

public function testByDefaultOriginalCloneIsPreserved() {
  $spec = $this
    ->getMockBuilder('Mockable');
  $mock = $spec
    ->getMock();
  $cloned = clone $mock;
  $this
    ->assertTrue($cloned->cloned);
}