mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-23 00:30:09 +00:00
More Minor Tweaks
This commit is contained in:
@@ -35,4 +35,19 @@ class SampleCoverageTest extends TestCase
|
||||
->willReturn(false);
|
||||
$helper->getFilename('a.xlsx');
|
||||
}
|
||||
|
||||
public function testTitles(): void
|
||||
{
|
||||
$helper = new Sample();
|
||||
ob_start();
|
||||
$helper->titles('Category', 'FunctionName');
|
||||
$output = (string) ob_get_clean();
|
||||
$output = str_replace("\r", '', $output);
|
||||
self::assertStringContainsString("Function: FunctionName()\n", $output);
|
||||
ob_start();
|
||||
$helper->titles('Category', 'FunctionName', 'Description');
|
||||
$output = (string) ob_get_clean();
|
||||
$output = str_replace("\r", '', $output);
|
||||
self::assertStringContainsString("Function: FunctionName() - Description.\n", $output);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user