PHP Class SensioLabs\AstRunner\Tests\Command\SelfUpdateCommandTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: sensiolabs-de/deptrac

Public Methods

Method Description
testUpdateFail ( ) Tests the command status is 1 (fail) if the update fails
testUpdateSuccess ( $isPharOutdated ) Tests the command status is 0 (success) if the update success or is not necessary
testUpdateSuccessProvider ( )

Private Methods

Method Description
getContainerWithUpdater ( Humbug\SelfUpdate\Updater $updater )

Method Details

testUpdateFail() public method

Tests the command status is 1 (fail) if the update fails
public testUpdateFail ( )

testUpdateSuccess() public method

Tests the command status is 0 (success) if the update success or is not necessary
public testUpdateSuccess ( $isPharOutdated )
$isPharOutdated

testUpdateSuccessProvider() public method