PHP Class spec\GrumPHP\Event\Subscriber\StashUnstagedChangesSubscriberSpec

Inheritance: extends PhpSpec\ObjectBehavior
Show file Open project: phpro/grumphp

Public Methods

Method Description
it_is_an_event_subscriber ( )
it_is_initializable ( )
it_should_display_exception_when_pop_fails ( Repository $repository )
it_should_not_run_in_invalid_context ( Repository $repository )
it_should_not_run_when_disabled ( GrumPHP $grumPHP, Repository $repository )
it_should_not_run_when_there_are_no_unstaged_changes ( Repository $repository, Gitonomy\Git\Diff\Diff $unstaged )
it_should_not_try_to_pop_when_stash_saving_failed ( Repository $repository )
it_should_pop_changes ( Repository $repository )
it_should_pop_changes_when_an_error_occurs ( Repository $repository )
it_should_stash_changes ( Repository $repository )
it_should_subscribe_to_events ( )
let ( GrumPHP $grumPHP, Repository $repository, GrumPHP\IO\IOInterface $io, Gitonomy\Git\WorkingCopy $workingCopy, Gitonomy\Git\Diff\Diff $unstaged )

Method Details

it_is_an_event_subscriber() public method

it_is_initializable() public method

public it_is_initializable ( )

it_should_display_exception_when_pop_fails() public method

public it_should_display_exception_when_pop_fails ( Repository $repository )
$repository Gitonomy\Git\Repository

it_should_not_run_in_invalid_context() public method

public it_should_not_run_in_invalid_context ( Repository $repository )
$repository Gitonomy\Git\Repository

it_should_not_run_when_disabled() public method

public it_should_not_run_when_disabled ( GrumPHP $grumPHP, Repository $repository )
$grumPHP GrumPHP\Configuration\GrumPHP
$repository Gitonomy\Git\Repository

it_should_not_run_when_there_are_no_unstaged_changes() public method

public it_should_not_run_when_there_are_no_unstaged_changes ( Repository $repository, Gitonomy\Git\Diff\Diff $unstaged )
$repository Gitonomy\Git\Repository
$unstaged Gitonomy\Git\Diff\Diff

it_should_not_try_to_pop_when_stash_saving_failed() public method

public it_should_not_try_to_pop_when_stash_saving_failed ( Repository $repository )
$repository Gitonomy\Git\Repository

it_should_pop_changes() public method

public it_should_pop_changes ( Repository $repository )
$repository Gitonomy\Git\Repository

it_should_pop_changes_when_an_error_occurs() public method

public it_should_pop_changes_when_an_error_occurs ( Repository $repository )
$repository Gitonomy\Git\Repository

it_should_stash_changes() public method

public it_should_stash_changes ( Repository $repository )
$repository Gitonomy\Git\Repository

it_should_subscribe_to_events() public method

let() public method

public let ( GrumPHP $grumPHP, Repository $repository, GrumPHP\IO\IOInterface $io, Gitonomy\Git\WorkingCopy $workingCopy, Gitonomy\Git\Diff\Diff $unstaged )
$grumPHP GrumPHP\Configuration\GrumPHP
$repository Gitonomy\Git\Repository
$io GrumPHP\IO\IOInterface
$workingCopy Gitonomy\Git\WorkingCopy
$unstaged Gitonomy\Git\Diff\Diff