Beispiel #1
0
 /**
  * @test
  */
 public function objectSerializationShouldExpected()
 {
     $this->assertEquals('O:8:"stdClass":0:{}', $this->stringifier->toString(new stdClass()));
 }
Beispiel #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()));
 }
Beispiel #3
0
 /**
  * @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());
 }