Skip to content

Commit

Permalink
Update the tests :|
Browse files Browse the repository at this point in the history
  • Loading branch information
oradwell committed Oct 29, 2015
1 parent 6445d1f commit d471a99
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/Handler/InputHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public function testHandlesInputWithNoBootstrap()
$input->getOption('configuration')
->shouldBeCalled()
->willReturn('tests/Fixtures/configuration-empty.xml');
$input->hasOption('bootstrap')
$input->getOption('bootstrap')
->shouldBeCalled()
->willReturn(false);
->willReturn(null);

$config = InputHandler::handleInput($input->reveal());

Expand All @@ -42,9 +42,9 @@ public function testHandlesInputWithBootstrapInConfig()
$input->getOption('configuration')
->shouldBeCalled()
->willReturn('tests/Fixtures/configuration-bootstrap.xml');
$input->hasOption('bootstrap')
$input->getOption('bootstrap')
->shouldBeCalled()
->willReturn(false);
->willReturn(null);

$this->assertFalse(
class_exists(
Expand Down Expand Up @@ -74,9 +74,6 @@ public function testBootstrapInInputOverridesConfig()
$input->getOption('configuration')
->shouldBeCalled()
->willReturn('tests/Fixtures/configuration-bootstrap.xml');
$input->hasOption('bootstrap')
->shouldBeCalled()
->willReturn(true);
$input->getOption('bootstrap')
->shouldBeCalled()
->willReturn('tests/Fixtures/bootstrap-2.php');
Expand Down

0 comments on commit d471a99

Please sign in to comment.