-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6325c77
commit 9d81542
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SGVsbG8gV29ybGQh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
namespace Pantheon\Terminus\UnitTests\Commands; | ||
|
||
use Pantheon\Terminus\Tests\CommandTestCase; | ||
use Symfony\Component\Console\Output\BufferedOutput; | ||
|
||
class ArtCommandTest extends CommandTestCase | ||
{ | ||
|
||
public function setUp() | ||
{ | ||
parent::setUp(); | ||
$this->setInput(['command' => 'art', 'name' => 'hello']); | ||
} | ||
|
||
public function testArtPrintsArt() | ||
{ | ||
$this->assertEquals('Hello World!', $this->runCommand()->getOutput()); | ||
} | ||
|
||
public function testArtRejectsNonExistantFiles() | ||
{ | ||
$this->setInput(['command' => 'art', 'name' => 'foo']); | ||
$this->assertEquals('Not a valid work of art!', $this->runCommand()->getOutput()); | ||
} | ||
} |