Skip to content

Commit 6f50c18

Browse files
committed
MC-39899: Stabilize MFTF tests
Fixed static test' '
1 parent 0c9af2d commit 6f50c18

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

setup/src/Magento/Setup/Test/Unit/Console/Style/MagentoStyleTest.php

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public function testBlockStyle()
6767
. PHP_EOL . '\<testBlockStyle\>testBlockPrefix \s+ test second message\s+'
6868
. PHP_EOL . PHP_EOL;
6969
// @codingStandardsIgnoreEnd
70-
$this->assertMatchesRegularExpression('/' . $expected . '/', $this->testOutput->output, 'Block does not match output');
70+
$this->assertMatchesRegularExpression(
71+
'/' . $expected . '/', $this->testOutput->output, 'Block does not match output');
7172
}
7273

7374
/**
@@ -128,7 +129,8 @@ public function testCommentStyle()
128129
{
129130
$this->magentoStyle->comment('test comment');
130131
$expected = PHP_EOL . PHP_EOL . PHP_EOL . '\s+test comment\s+' . PHP_EOL . PHP_EOL;
131-
$this->assertMatchesRegularExpression('/' . $expected . '/', $this->testOutput->output, 'Comment does not match output');
132+
$this->assertMatchesRegularExpression(
133+
'/' . $expected . '/', $this->testOutput->output, 'Comment does not match output');
132134
}
133135

134136
/**
@@ -140,7 +142,8 @@ public function testSuccessStyle()
140142
{
141143
$this->magentoStyle->success('test success message');
142144
$expected = PHP_EOL . PHP_EOL . PHP_EOL . ' \[SUCCESS\] test success message\s+' . PHP_EOL . PHP_EOL;
143-
$this->assertMatchesRegularExpression('/' . $expected . '/', $this->testOutput->output, 'Success message does not match output');
145+
$this->assertMatchesRegularExpression(
146+
'/' . $expected . '/', $this->testOutput->output, 'Success message does not match output');
144147
}
145148

146149
/**
@@ -152,7 +155,8 @@ public function testErrorStyle()
152155
{
153156
$this->magentoStyle->error('test error message');
154157
$expected = PHP_EOL . PHP_EOL . PHP_EOL . '\s+\[ERROR\] test error message\s+' . PHP_EOL . PHP_EOL;
155-
$this->assertMatchesRegularExpression('/' . $expected . '/', $this->testOutput->output, 'Error message does not match output');
158+
$this->assertMatchesRegularExpression(
159+
'/' . $expected . '/', $this->testOutput->output, 'Error message does not match output');
156160
}
157161

158162
/**
@@ -164,7 +168,8 @@ public function testWarningStyle()
164168
{
165169
$this->magentoStyle->warning('test warning message');
166170
$expected = PHP_EOL . PHP_EOL . PHP_EOL . '\s+\[WARNING\] test warning message\s+' . PHP_EOL . PHP_EOL;
167-
$this->assertMatchesRegularExpression('/' . $expected . '/', $this->testOutput->output, 'Warning message does not match output');
171+
$this->assertMatchesRegularExpression(
172+
'/' . $expected . '/', $this->testOutput->output, 'Warning message does not match output');
168173
}
169174

170175
/**
@@ -176,7 +181,8 @@ public function testNoteStyle()
176181
{
177182
$this->magentoStyle->note('test note message');
178183
$expected = PHP_EOL . PHP_EOL . PHP_EOL . '\s+\[NOTE\] test note message\s+' . PHP_EOL . PHP_EOL;
179-
$this->assertMatchesRegularExpression('/' . $expected . '/', $this->testOutput->output, 'Note message does not match output');
184+
$this->assertMatchesRegularExpression(
185+
'/' . $expected . '/', $this->testOutput->output, 'Note message does not match output');
180186
}
181187

182188
/**
@@ -188,7 +194,8 @@ public function testCautionStyle()
188194
{
189195
$this->magentoStyle->caution('test caution message');
190196
$expected = PHP_EOL . PHP_EOL . PHP_EOL . '\s+! \[CAUTION\] test caution message\s+' . PHP_EOL . PHP_EOL;
191-
$this->assertMatchesRegularExpression('/' . $expected . '/', $this->testOutput->output, 'Caution message does not match output');
197+
$this->assertMatchesRegularExpression(
198+
'/' . $expected . '/', $this->testOutput->output, 'Caution message does not match output');
192199
}
193200

194201
/**

0 commit comments

Comments
 (0)