示例#1
0
 public function filter($value)
 {
     return \Knlv\transelot($value);
 }
示例#2
0
<?php

require __DIR__ . '/../vendor/autoload.php';
use FUnit as fu;
fu::test("Test transelot works", function () {
    $input = "αβγδεζηικλμνξοπρστυφωάίύέόήώϊϋΐΰςΑΒΓΔΕΖΗΙΚΛΜΝΞΟΠΡΣΤΥΦΩΆΊΎΈΌΉΏΪΫ";
    $expected = "avgdeziiklmnxoprstyfoaiyeoioieiysAVGDEZIIKLMNXOPRSTYFOΑIYEOIOIY";
    fu::equal(\Knlv\transelot($input), $expected, "Assert translitteration works");
});