| 1 |
<?php |
| 2 |
|
| 3 |
use PHPUnit\Framework\TestCase; |
| 4 |
|
| 5 |
class TextFilterTest extends TestCase { |
| 6 |
|
| 7 |
public function setUp() { |
| 8 |
$this->filter = new ResponsiveMenu\Filters\TextFilter; |
| 9 |
} |
| 10 |
|
| 11 |
public function testFilteredWithString() { |
| 12 |
$this->assertEquals('a', $this->filter->filter('a')); |
| 13 |
} |
| 14 |
|
| 15 |
public function testFilteredWithHtml() { |
| 16 |
$this->assertEquals('a', $this->filter->filter('<span class="test">a</span>')); |
| 17 |
} |
| 18 |
|
| 19 |
} |
| 20 |
|