Exemplo n.º 1
0
 /**
  * @dataProvider textProvider
  */
 public function testSerialize($printRequest, $showParams, $expected)
 {
     $this->assertSame($expected, Serializer::serialize($printRequest, $showParams));
 }
Exemplo n.º 2
0
 /**
  * Serialise this object like print requests given in \#ask.
  *
  * @param $params boolean that sets if the serialization should
  *                include the extra print request parameters
  */
 public function getSerialisation($showparams = false)
 {
     return Serializer::serialize($this, $showparams);
 }