/**
* @dataProvider customerComments
*
* @group slow
*
* @param string|float|int|bool|null $customerComment
*/
public function testOrderCustomerComment($customerComment, ?string
$savedCustomerComment): void
{ $order =
$this->
performOrder($customerComment);
static::
assertSame($savedCustomerComment,
$order->
getCustomerComment());
} /**
* @return array<mixed>
*/
public static function customerComments(): array
{ return [ [" Hello, \nthis is a customer comment! ", "Hello, \nthis is a customer comment!"
],
['<script>alert("hello")</script>', 'alert("hello")'
],
['<h1>Hello</h1><br><br>This is a Test! ', 'HelloThis is a Test!'
],
[