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