yield ['/webmozart/symfony/style.css.', '.', 'style.css'
];
yield ['/webmozart/symfony/style.css.', '.css', 'style.css'
];
yield ['/webmozart/symfony/.style.css', 'css', '.style'
];
yield ['/webmozart/symfony/.style.css', '.css', '.style'
];
} /**
* @dataProvider provideGetFilenameWithoutExtensionTests
*/
public function testGetFilenameWithoutExtension(string
$path, ?string
$extension, string
$filename) { $this->
assertSame($filename, Path::
getFilenameWithoutExtension($path,
$extension));
} public static function provideGetExtensionTests(): \Generator
{ yield ['/webmozart/symfony/style.css.twig', false, 'twig'
];
yield ['/webmozart/symfony/style.css', false, 'css'
];
yield ['/webmozart/symfony/style.css.', false, ''
];
yield ['/webmozart/symfony/', false, ''
];
yield ['/webmozart/symfony', false, ''
];
yield ['/', false, ''
];
yield ['', false, ''
];