Skip to content

Commit b506bb4

Browse files
committed
32977 Added heredoc syntax
1 parent a3bf297 commit b506bb4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

dev/tests/integration/testsuite/Magento/Checkout/Block/Cart/Item/RendererTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ public function testTextAreaCustomOption()
113113
$this->renderer->getLayout()->setBlock('checkout.item.price.row', $priceBlock);
114114
$html = $this->renderer->toHtml();
115115

116-
$this->assertMatchesRegularExpression('/Test product simple with
116+
$this->assertMatchesRegularExpression(<<<EOT
117+
/Test product simple with
117118
custom option text area
118-
with more 50 characters/', $html);
119+
with more 50 characters/
120+
EOT
121+
, $html);
119122
}
120123
}

dev/tests/integration/testsuite/Magento/Checkout/_files/cart_with_simple_product_and_custom_option_text_area.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
$value = key($option->getValues());
3030
break;
3131
default:
32-
$value = 'Test product simple with
32+
$value = <<<EOT
33+
Test product simple with
3334
custom option text area
34-
with more 50 characters';
35+
with more 50 characters
36+
EOT;
3537
break;
3638
}
3739
$options[$option->getId()] = $value;

0 commit comments

Comments
 (0)