Skip to content

Commit

Permalink
fixed coverage.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed Jul 19, 2013
1 parent 5fb005a commit 09ac9be
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/FtpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,21 @@ public function testFTPFacadeMethodsSuccessful()
/**
* Test Orchestra\Support\Ftp\Morph method throws Exception.
*
* @expectedException Orchestra\Support\Ftp\RuntimeException
* @test
*/
public function testFTPFacadeThrowsException()
{
Morph::$prefix = '\Orchestra\Support\Tests\mock1_ftp_';
Morph::fire('invalid_method', array());

try
{
Morph::fire('invalid_method', array('foo'));
}
catch (\Orchestra\Support\Ftp\RuntimeException $e)
{
$this->assertTrue(true, 'Excepted Exception');
$this->assertEquals(array('foo'), $e->getParameters());
}
}
}

Expand Down

0 comments on commit 09ac9be

Please sign in to comment.