@@ -22,12 +22,12 @@ class AssertSuccessfulReadinessCheck extends AbstractConstraint
22
22
/**
23
23
* PHP extensions message.
24
24
*/
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\ . ' ;
26
26
27
27
/**
28
28
* File permission message.
29
29
*/
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\ . ' ;
31
31
32
32
/**
33
33
* Assert that PHP Version, PHP Extensions and File Permission are ok.
@@ -42,13 +42,13 @@ public function processAssert(Install $installPage)
42
42
$ installPage ->getReadinessBlock ()->getPhpVersionCheck (),
43
43
'PHP version is incorrect. '
44
44
);
45
- \PHPUnit_Framework_Assert::assertContains (
46
- self ::PHP_EXTENSIONS_MESSAGE ,
45
+ \PHPUnit_Framework_Assert::assertRegExp (
46
+ self ::PHP_EXTENSIONS_REGEXP ,
47
47
$ installPage ->getReadinessBlock ()->getPhpExtensionsCheck (),
48
48
'PHP extensions missed. '
49
49
);
50
- \PHPUnit_Framework_Assert::assertContains (
51
- self ::FILE_PERMISSION_MESSAGE ,
50
+ \PHPUnit_Framework_Assert::assertRegExp (
51
+ self ::FILE_PERMISSION_REGEXP ,
52
52
$ installPage ->getReadinessBlock ()->getFilePermissionCheck (),
53
53
'File permissions does not meet requirements. '
54
54
);
0 commit comments