示例#1
0
 /**
  * @dataProvider isAlphanumericProvider()
  */
 public function testIsAlphanumeric($expected, $str, $encoding = null)
 {
     $result = S::isAlphanumeric($str, $encoding);
     $this->assertInternalType('boolean', $result);
     $this->assertEquals($expected, $result);
 }
示例#2
0
 public function isAlphanumeric($string)
 {
     return Stringy::isAlphanumeric($string);
 }