Skip to content

Commit

Permalink
Test the runner
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevanwinkle committed Nov 20, 2014
1 parent 02f1a66 commit 908d39d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test-runner.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
use \Terminus\Runner;
use \Terminus;

class RunnerTest extends PHPUnit_Framework_TestCase {

function testRunCommand() {
$runner = Terminus::get_runner();
$this->assertInstanceOf('\Terminus\Runner',$runner);
$args = array('site');
$assoc_args = array('site' => 'phpunittest');
$return = $runner->run_command($args, $assoc_args);
// @todo null here is expected
$this->assertNull($return);
}

}

0 comments on commit 908d39d

Please sign in to comment.