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