Beispiel #1
0
 /**
  * When called with options and 'string' will return the string representation in a JSON string
  */
 public function testWhenCalledWithOptionsAndStringWillReturnTheStringRepresentationInAJSONString()
 {
     $typeValue = 'testing';
     $type = new Type($typeValue);
     $options = 0;
     static::assertInternalType('string', $type->toJson($options, 'string'));
     static::assertEquals(json_encode($typeValue, $options), $type->toJson($options, 'string'));
     return [$typeValue, $type, $options];
 }