| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ArticleTest extends \PHPUnit_Framework_TestCase { |
||
| 6 | |||
| 7 | public function testLoad() |
||
| 8 | { |
||
| 9 | $article = new Article('На дворе смеркалось'); |
||
| 10 | $this->assertCount(3, $article->words); |
||
| 11 | } |
||
| 12 | |||
| 13 | public function testGetArticle() |
||
| 14 | { |
||
| 15 | $article = new Article('Ёжик в тумане'); |
||
| 16 | $this->assertTrue(is_string($article->getArticle())); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function testCheckBadWords() |
||
| 20 | { |
||
| 21 | $article = new Article('Не те бляди, что денег ради…'); |
||
| 22 | $this->assertNotEmpty($article->checkBadWords()); |
||
| 23 | $this->assertNotEmpty($article->checkBadWords(true)); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testCheckNoBadWords() |
||
| 30 | } |
||
| 31 | |||
| 32 | } |