tests: update to use version() in test

This commit is contained in:
Owen Voke
2020-08-19 16:55:08 +01:00
parent bf79f7c63f
commit 09a0a64f20

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 () {