/** * content test * @param $content * @param Article $article */ protected function assertContent($content, Article $article) { $string = $article->getId() . '- ' . $article->getTitle() . ' - ' . $article->getRate(); $this->assertRegexp("/{$string}/", $content); }