-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Filter out fenced code out of comments #28
* Enable debug mode in run-test script
- Loading branch information
1 parent
0c4d589
commit c9b4d62
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
rm -rf runtime/addendum/* | ||
vendor/bin/codecept run unit "$@"Test.php | ||
vendor/bin/codecept run unit "$@"Test.php --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
|
||
namespace Maslosoft\Addendum\Plugins\Matcher; | ||
|
||
use Maslosoft\Addendum\Helpers\Fence; | ||
use Maslosoft\Addendum\Interfaces\Matcher\MatcherInterface; | ||
use Maslosoft\Addendum\Interfaces\Plugins\Matcher\MatcherDecoratorInterface; | ||
|
||
/** | ||
* Remove fenced comments from annotations. | ||
* This allows to write php doc with annotations - these documentation annotations will not get parsed. | ||
* | ||
* @author Piotr Maselkowski <pmaselkowski at gmail.com> | ||
*/ | ||
class DefencerDecorator implements MatcherDecoratorInterface | ||
{ | ||
|
||
public function decorate(MatcherInterface $matcher, &$value) | ||
{ | ||
Fence::out($value); | ||
} | ||
|
||
} |