/** * When called with 'string' will return the string representation */ public function testWhenCalledWithStringWillReturnTheStringRepresentation() { $labelValue = 'testing'; $label = new Label($labelValue); static::assertInternalType('string', $label->toOutput('string')); static::assertEquals($labelValue, $label->toOutput('string')); return [$labelValue, $label]; }