Updated function + added unit test

This commit is contained in:
laf 2016-10-25 13:26:20 +00:00
parent 02ab4df54a
commit f7c79307db

View File

@ -80,8 +80,7 @@ class CommonFunctionsTest extends \PHPUnit_Framework_TestCase
public function testRrdDescriptions()
{
$data = 'Toner S/N:CRUM-1';
$this->assertEquals('Toner S/N CRUM-1', safedescr($data));
$data = 'Toner, S/N:CR_UM-1.';
$this->assertEquals('Toner, S/N CR_UM-1.', safedescr($data));
}
}