Merge pull request #166 from owenvoke/feature/version

chore: indicate 0.3 dev in version
This commit is contained in:
Nuno Maduro
2020-08-19 20:27:51 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@ -6,5 +6,5 @@ namespace Pest;
function version(): string
{
return '0.2.2';
return '0.3.x-dev';
}

View File

@ -1,6 +1,7 @@
<?php
use Pest\Plugins\Version;
use function Pest\version;
use Symfony\Component\Console\Output\BufferedOutput;
it('outputs the version when --version is used', function () {
@ -8,7 +9,7 @@ it('outputs the version when --version is used', function () {
$plugin = new Version($output);
$plugin->handleArguments(['foo', '--version']);
expect($output->fetch())->toContain('Pest 0.2.2');
expect($output->fetch())->toContain('Pest ' . version());
});
it('do not outputs version when --version is not used', function () {