2 declare(strict_types = 1);
20 use TYPO3\CMS\Core\Package\PackageManager;
22 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
37 protected function setUp():
void
39 $packageManagerProphecy = $this->prophesize(PackageManager::class);
48 $this->assertSame(
'http://example.com', $this->templateService->getFileName(
'http://example.com'));
49 $this->assertSame(
'https://example.com', $this->templateService->getFileName(
'https://example.com'));
57 $this->assertSame(
'typo3/index.php', $this->templateService->getFileName(
'typo3/index.php'));
65 $this->assertNull($this->templateService->getFileName(__DIR__));
73 $this->assertNull($this->templateService->getFileName(
' '));
74 $this->assertNull($this->templateService->getFileName(
'something/../else'));