Exemplo n.º 1
0
    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');
    }
Exemplo n.º 2
0
 public function decorate(MatcherInterface $matcher, &$value)
 {
     Fence::out($value);
 }