mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
tests: update to use version() in test
This commit is contained in:
@ -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