/**
  * @dataProvider dataGetAutosummary
  * @covers WikitextContentHandler::getAutosummary
  */
 public function testGetAutosummary($old, $new, $flags, $expected)
 {
     $oldContent = is_null($old) ? null : new WikitextContent($old);
     $newContent = is_null($new) ? null : new WikitextContent($new);
     $summary = $this->handler->getAutosummary($oldContent, $newContent, $flags);
     $this->assertTrue((bool) preg_match($expected, $summary), "Autosummary didn't match expected pattern {$expected}: {$summary}");
 }