Esempio n. 1
0
 /**
  * @param string $content
  * @param string $expected
  * @dataProvider cleanArticleSnippetProvider
  */
 public function testCleanArticleSnippet($content, $expected)
 {
     /* @var $title Title */
     $title = $this->mockClassWithMethods('Title');
     $service = new ArticleService($title);
     $this->assertEquals($expected, $service->cleanArticleSnippet($content));
 }