added in vendor for prod
This commit is contained in:
22
vendor/open-function-computers-llc/rad-theme-engine/tests/UtilTest.php
vendored
Normal file
22
vendor/open-function-computers-llc/rad-theme-engine/tests/UtilTest.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace ofc\tests;
|
||||
|
||||
use ofc\Util;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class UtilTest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function weCanSlugifyAString()
|
||||
{
|
||||
$cases = [
|
||||
"This is a string" => "this-is-a-string",
|
||||
"String with nÓn ASCII chars & stuff!" => "string-with-non-ascii-chars-and-stuff",
|
||||
];
|
||||
|
||||
foreach ($cases as $input => $expected) {
|
||||
$this->assertEquals($expected, Util::slugify($input));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user