public function testIfWillRemoveFencedOutPartsOfAString() { $code = <<<CODE Blahaa ```php Some annotation @X ``` Some other text ```php Some other comment @Y ``` ``` \t\t\t\t@Foo \t\t\t\t``` CODE; $this->assertNotFalse(strstr($code, '@'), 'That fenced out code has @\'s'); Fence::out($code); $this->assertFalse(strstr($code, '@'), 'That fenced out code was removed'); }
public function decorate(MatcherInterface $matcher, &$value) { Fence::out($value); }