| Total Complexity | 2 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ReplaceTest extends \PHPUnit_Framework_TestCase |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var HtmlTagReplace |
||
| 15 | */ |
||
| 16 | private $replacer; |
||
| 17 | |||
| 18 | public function __construct($name = NULL, array $data = array(), $dataName = '') |
||
| 19 | { |
||
| 20 | parent::__construct($name, $data, $dataName); |
||
| 21 | |||
| 22 | $this->replacer = new HtmlTagReplace(<<<EOF |
||
| 23 | <img src="#" alt="nope"> |
||
| 24 | <img src="#"> |
||
| 25 | <div id="foo">bar</div> |
||
| 26 | <em class="foo">bar</em> |
||
| 27 | <input type="text" name="foo"> |
||
| 28 | EOF |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testMarkupManipulation() |
||
| 67 | } |
||
| 68 | } |