|
@@ 70-77 (lines=8) @@
|
| 67 |
|
$this->tester = new ScenarioStateHookableScenarioTester($this->baseTesterMock->reveal(), $this->dispatcherMock->reveal()); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function testSetUpSkip() |
| 71 |
|
{ |
| 72 |
|
$setupMock = $this->prophesize(Setup::class); |
| 73 |
|
$this->baseTesterMock->setUp($this->environmentMock, $this->featureNodeMock, $this->scenarioMock, true) |
| 74 |
|
->willReturn($setupMock) |
| 75 |
|
->shouldBeCalledTimes(1); |
| 76 |
|
$this->assertEquals($setupMock->reveal(), $this->tester->setUp($this->environmentMock->reveal(), $this->featureNodeMock->reveal(), $this->scenarioMock->reveal(), true)); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
public function testTearDownSkip() |
| 80 |
|
{ |
|
@@ 89-96 (lines=8) @@
|
| 86 |
|
$this->assertEquals($tearDownMock->reveal(), $this->tester->tearDown($this->environmentMock->reveal(), $this->featureNodeMock->reveal(), $this->scenarioMock->reveal(), true, $testResultMock->reveal())); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
public function testTest() |
| 90 |
|
{ |
| 91 |
|
$testResultMock = $this->prophesize(TestResult::class); |
| 92 |
|
$this->baseTesterMock->test($this->environmentMock, $this->featureNodeMock, $this->scenarioMock, false) |
| 93 |
|
->willReturn($testResultMock) |
| 94 |
|
->shouldBeCalledTimes(1); |
| 95 |
|
$this->assertEquals($testResultMock->reveal(), $this->tester->test($this->environmentMock->reveal(), $this->featureNodeMock->reveal(), $this->scenarioMock->reveal(), false)); |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|