File "GitMergeConflictUnitTest.6.inc"

Full Path: /home/warrior1/public_html/languages/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.6.inc
File size: 799 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

$string =
		<<<"EOD"
		Merge conflicts in PHP 7.3 indented heredocs
<<<<<<< HEAD
		can be problematic.
=======
		should also be detected.
>>>>>>> ref/heads/other-branchname
		And now they are.
		EOD;

// Break the tokenizer.
>>>>>>> master

/*
 * The above tests are based on "normal" tokens.
 * The below test checks that once the tokenizer breaks down because of
 * unexpected merge conflict boundaries - i.e. after the first merge conflict
 * opener in non-comment, non-heredoc/nowdoc, non-inline HTML code -, subsequent
 * merge conflict boundaries will still be detected correctly.
 */

$string =
		<<<"EOD"
		Merge conflicts in PHP 7.3 indented heredocs
<<<<<<< HEAD
		can be problematic.
=======
		should also be detected.
>>>>>>> ref/heads/other-branchname
		And now they are.
		EOD;