mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
Merge pull request #166 from owenvoke/feature/version
chore: indicate 0.3 dev in version
This commit is contained in:
@ -6,5 +6,5 @@ namespace Pest;
|
|||||||
|
|
||||||
function version(): string
|
function version(): string
|
||||||
{
|
{
|
||||||
return '0.2.2';
|
return '0.3.x-dev';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Pest\Plugins\Version;
|
use Pest\Plugins\Version;
|
||||||
|
use function Pest\version;
|
||||||
use Symfony\Component\Console\Output\BufferedOutput;
|
use Symfony\Component\Console\Output\BufferedOutput;
|
||||||
|
|
||||||
it('outputs the version when --version is used', function () {
|
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 = new Version($output);
|
||||||
|
|
||||||
$plugin->handleArguments(['foo', '--version']);
|
$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 () {
|
it('do not outputs version when --version is not used', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user