コード例 #1
0
 /**
  * @dataProvider isSerializedProvider()
  */
 public function testIsSerialized($expected, $str, $encoding = null)
 {
     $result = S::isSerialized($str, $encoding);
     $this->assertInternalType('boolean', $result);
     $this->assertEquals($expected, $result);
 }
コード例 #2
0
ファイル: StringyLoader.php プロジェクト: lablog/stringy
 public function isSerialized($string)
 {
     return Stringy::isSerialized($string);
 }