Mercurial > hg > cmmr2012-drupal-site
diff core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php Thu Feb 28 13:11:55 2019 +0000 @@ -52,6 +52,7 @@ * Test class for \PHPUnit\Framework\TestCase in PHPUnit 4. */ class Phpunit4TestClass { + public function getMock($originalClassName) { return 'PHPUnit 4'; } @@ -62,6 +63,7 @@ * Test class for \PHPUnit\Framework\TestCase in PHPUnit 6. */ class Phpunit6TestClass { + public function createMock($originalClassName) { return 'PHPUnit 6'; } @@ -76,6 +78,7 @@ * Test double for PHPUnit_Framework_MockObject_MockBuilder. */ class Mockbuilder { + public function __call($name, $arguments) { return $this; }