/**
  * @dataProvider isHexadecimalProvider()
  */
 public function testIsHexadecimal($expected, $str, $encoding = null)
 {
     $result = S::isHexadecimal($str, $encoding);
     $this->assertInternalType('boolean', $result);
     $this->assertEquals($expected, $result);
 }
Exemple #2
0
 public function isHexadecimal($string)
 {
     return Stringy::isHexadecimal($string);
 }