diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ce4f3c1d..c8201e50 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,7 +12,7 @@ We accept contributions via Pull Requests on [Github](https://github.com/10up/wp ## Pull Requests -* New features must be submitted against the the **trunk** branch +* New features must be submitted against the **trunk** branch * Bug fixes should be submitted against the branch in which the bug exists, which is likely **trunk**. * If you're not sure whether a feature idea would be something we'd be interested in, please open an issue before you start working on it. We'd be happy to discuss your idea with you. diff --git a/php/WP_Mock/Tools/TestCase.php b/php/WP_Mock/Tools/TestCase.php index 758041e7..82ffff1e 100644 --- a/php/WP_Mock/Tools/TestCase.php +++ b/php/WP_Mock/Tools/TestCase.php @@ -5,6 +5,7 @@ use PHPUnit\Framework\TestResult; use Exception; use Mockery; +use PHPUnit\Util\Test as TestUtil; use ReflectionMethod; use Text_Template; use WP_Mock; @@ -282,7 +283,10 @@ protected function requireFileDependencies() { protected function setUpContentFiltering() { $this->__contentFilterCallback = false; - $annotations = $this->getAnnotations(); + $annotations = TestUtil::parseTestMethodAnnotations( + static::class, + $this->getName( false ) + ); if ( ! isset( $annotations['stripTabsAndNewlinesFromOutput'] ) || $annotations['stripTabsAndNewlinesFromOutput'][0] !== 'disabled' ||