Pyrech\ComposerChangelogs\tests\Config\ConfigBuilderTest::test_it_warns_when_specified_commit_bin_file_was_not_found PHP Метод

test_it_warns_when_specified_commit_bin_file_was_not_found() публичный Метод

    public function test_it_warns_when_specified_commit_bin_file_was_not_found()
    {
        $extra = ['commit-auto' => 'always', 'commit-bin-file' => '/tmp/toto'];
        $config = $this->SUT->build($extra, __DIR__);
        static::assertInstanceOf('Pyrech\\ComposerChangelogs\\Config\\Config', $config);
        static::assertSame('always', $config->getCommitAuto());
        static::assertNull($config->getCommitBinFile());
        static::assertEmpty($config->getGitlabHosts());
        static::assertCount(1, $this->SUT->getWarnings());
        static::assertContains('The file pointed by the option "commit-bin-file" was not found. Ignoring.', $this->SUT->getWarnings()[0]);
    }