Skip to content

Commit 4dbe477

Browse files
committed
MAGETWO-34390: Stabilization of replacing Zend_Locale with Native PHP Implementation
1 parent 7d5e2d5 commit 4dbe477

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessfulReadinessCheck.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class AssertSuccessfulReadinessCheck extends AbstractConstraint
2222
/**
2323
* PHP extensions message.
2424
*/
25-
const PHP_EXTENSIONS_MESSAGE = 'You meet 9 out of 9 PHP extensions requirements.';
25+
const PHP_EXTENSIONS_REGEXP = 'You meet (\d+) out of \1 PHP extensions requirements\.';
2626

2727
/**
2828
* File permission message.
2929
*/
30-
const FILE_PERMISSION_MESSAGE = 'You meet 4 out of 4 writable file permission requirements.';
30+
const FILE_PERMISSION_REGEXP = 'You meet (\d+) out of \1 writable file permission requirements\.';
3131

3232
/**
3333
* Assert that PHP Version, PHP Extensions and File Permission are ok.
@@ -42,13 +42,13 @@ public function processAssert(Install $installPage)
4242
$installPage->getReadinessBlock()->getPhpVersionCheck(),
4343
'PHP version is incorrect.'
4444
);
45-
\PHPUnit_Framework_Assert::assertContains(
46-
self::PHP_EXTENSIONS_MESSAGE,
45+
\PHPUnit_Framework_Assert::assertRegExp(
46+
self::PHP_EXTENSIONS_REGEXP,
4747
$installPage->getReadinessBlock()->getPhpExtensionsCheck(),
4848
'PHP extensions missed.'
4949
);
50-
\PHPUnit_Framework_Assert::assertContains(
51-
self::FILE_PERMISSION_MESSAGE,
50+
\PHPUnit_Framework_Assert::assertRegExp(
51+
self::FILE_PERMISSION_REGEXP,
5252
$installPage->getReadinessBlock()->getFilePermissionCheck(),
5353
'File permissions does not meet requirements.'
5454
);

0 commit comments

Comments
 (0)