Skip to content

Commit

Permalink
Add test for pup --version
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Jul 7, 2023
1 parent 598ecbf commit 6689b30
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/cli/AppCest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace StellarWP\Pup\Tests;

use StellarWP\Pup\Tests\Cli\AbstractBase;
use StellarWP\Pup\Tests\CliTester;

class AppCest extends AbstractBase {
/**
* @test
*/
public function it_should_show_version( CliTester $I ) {
$I->runShellCommand( "php {$this->pup} --version" );
$I->seeResultCodeIs( 0 );
$I->seeInShellOutput( 'pup ' );
$I->seeInShellOutput( 'Using: PHP ' );
}
}

0 comments on commit 6689b30

Please sign in to comment.