Skip to content

Commit 08df555

Browse files
committed
Fix tests for PHP 7.2 and 7.3
PHP 7.2 and 7.3 tokenize "<?php" string without any additional tokens as T_INLINE_HTML instead of T_OPEN_TAG. Let's just fix the tests.
1 parent c43930c commit 08df555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Blueprints/Tests/Unit/Steps/DefineConstantsStepTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testAddNewConstants() {
3434
}
3535

3636
public function testAddNewConstantsToEmptyWpConfig() {
37-
$this->runtime->getTargetFilesystem()->put_contents( 'wp-config.php', '<?php' );
37+
$this->runtime->getTargetFilesystem()->put_contents( 'wp-config.php', "<?php\n" );
3838
$constants = [
3939
'WP_MEMORY_LIMIT' => '256M',
4040
'AUTOMATIC_UPDATER_DISABLED' => true,

0 commit comments

Comments
 (0)