mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
tests: update to use version() in test
This commit is contained in:
@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user