yield ['C:webmozart', ''
];
yield ['D:/Folder/Aééé/Subfolder', 'D:/Folder/Aééé'
];
} /**
* @dataProvider provideGetDirectoryTests
*/
public function testGetDirectory(string
$path, string
$directory) { $this->
assertSame($directory, Path::
getDirectory($path));
} public static function provideGetFilenameWithoutExtensionTests(): \Generator
{ yield ['/webmozart/symfony/style.css.twig', null, 'style.css'
];
yield ['/webmozart/symfony/style.css.', null, 'style.css'
];
yield ['/webmozart/symfony/style.css', null, 'style'
];
yield ['/webmozart/symfony/.style.css', null, '.style'
];
yield ['/webmozart/symfony/', null, 'symfony'
];
yield ['/webmozart/symfony', null, 'symfony'
];
yield ['/', null, ''
];