<?php

declare(strict_types=1);

namespace Rector\Core\Testing\ValueObject;

final class SplitLine
{
    /**
     * @var string
     */
    public const SPLIT_LINE = '#-----' . PHP_EOL . '#';
}

<?php

declare(strict_types=1);

namespace Rector\Core\Testing\ValueObject;

final class SplitLine
{
    /**
     * @var string
     */
    public const SPLIT_LINE = "#-----\r?\n#";
}

Fix regex to account for windows.
Fix regex to account for windows.

The fixtures files are all \n, so when the tests were run from windows none matched with PHP_EOL.
The new regex will match line endings of either OS.