/** * Tests creating an abstract. * * @dataProvider createAbstractProvider * @covers empire\framework\util\Text::createAbstract * * @param string $text the text * @param int $sentences the number of sentences * @param string $abstract the abstract */ public function testCreateAbstract($text, $sentences, $abstract) { $this->assertSame($abstract, $this->instance->createAbstract($text, $sentences)); }