function CufonTestCase::testCufonGetFonts in Cufón 6
File
- tests/
cufon.test, line 28 - Tests for Cufon.module.
Class
- CufonTestCase
- @file Tests for Cufon.module.
Code
function testCufonGetFonts() {
$cases = array(
'My_Font.font.js' => 'My Font',
'mY_FoNt.font.js' => 'mY FoNt',
'My_Font_300.font.js' => 'My Font',
'My_Font_300-My_Font_600.font.js' => 'My Font',
);
foreach ($cases as $filename => $family) {
$cufon_family = _cufon_get_font_family($filename);
$this
->assertEqual($family, $cufon_family, t('Cufon resolved filename as @cufon_family (correct family name: @family).', array(
'@cufon_family' => $cufon_family,
'@family' => $family,
)));
}
}