예제 #1
0
 /**
  * @test
  */
 public function objectSerializationShouldExpected()
 {
     $this->assertEquals('O:8:"stdClass":0:{}', $this->stringifier->toString(new stdClass()));
 }
예제 #2
0
 /**
  * @test
  * @expectedException \Jumper\Exception\StringifierException
  * @expectedExceptionMessage VarExportEval has a limited support. Object serialization is not possible. Consider using \Jumper\Stringifier\Native stringifier.
  */
 public function objectSerializationShouldExpected()
 {
     $this->assertEquals("stdClass::__set_state(array(\n))", $this->stringifier->toString(new stdClass()));
 }
예제 #3
0
파일: JsonTest.php 프로젝트: sayiho/Jumper
 /**
  * @test
  * @expectedException \Jumper\Exception\StringifierException
  * @expectedExceptionMessage Json has a limited support. Object serialization is not possible. Consider using \Jumper\Stringifier\Native stringifier.
  */
 public function objectSerializationShouldThrowStringifierException()
 {
     $this->stringifier->toString(new stdClass());
 }