<commit_before><?php

namespace Test\Phinx\Console\Command;

/**
 * @runTestsInSeparateProcesses
 */
class AbstractCommandTest extends \PHPUnit_Framework_TestCase
{
    public function testFileFoundInDefaultPlace()
    {
        chdir(__DIR__ . '/Asset/default-test');
        $command = new Asset\FindConfigTestCommand();
        $foundFile = $command->callLocateConfigFile();
        $this->assertEquals(__DIR__ . '/Asset/default-test/phinx.yml', $foundFile);
    }

    public function testFindFileInCurrentWorkingDirectory()
    {
        putenv('PHINX_CONFIG_DIR=' . __DIR__ . '/Asset/env-test');
        $command = new Asset\FindConfigTestCommand();
        $foundFile = $command->callLocateConfigFile();
        $this->assertEquals(__DIR__ . '/Asset/env-test/phinx.php', $foundFile);
    }

    public function testFindFileInNestedConfigDirectory()
    {
        chdir(__DIR__ . '/Asset/app-test');
        $command = new Asset\FindConfigTestCommand();
        $foundFile = $command->callLocateConfigFile();
        $this->assertEquals(__DIR__ . '/Asset/app-test/config/phinx.php', $foundFile);
    }

}<commit_msg>fix tests on windows<commit_after><?php

namespace Test\Phinx\Console\Command;

/**
 * @runTestsInSeparateProcesses
 */
class AbstractCommandTest extends \PHPUnit_Framework_TestCase
{
    public function testFileFoundInDefaultPlace()
    {
        chdir(__DIR__ . '/Asset/default-test');
        $command = new Asset\FindConfigTestCommand();
        $foundFile = $command->callLocateConfigFile();
        $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, ['Asset', 'default-test', 'phinx.yml']), $foundFile);
    }

    public function testFindFileInCurrentWorkingDirectory()
    {
        putenv('PHINX_CONFIG_DIR=' . __DIR__ . '/Asset/env-test');
        $command = new Asset\FindConfigTestCommand();
        $foundFile = $command->callLocateConfigFile();
        $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, ['Asset', 'env-test', 'phinx.php']), $foundFile);
    }

    public function testFindFileInNestedConfigDirectory()
    {
        chdir(__DIR__ . '/Asset/app-test');
        $command = new Asset\FindConfigTestCommand();
        $foundFile = $command->callLocateConfigFile();
        $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, ['Asset', 'app-test', 'config', 'phinx.php']), $foundFile);
    }

}
{'fraction_non_alphanumeric': 0.13780337309749074, 'fraction_numerical': 0.0, 'mean_word_length': 3.6148007590132827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5825920', 'n_tokens_mistral': 738, 'n_tokens_neox': 719, 'n_words': 112}