@@ 45-52 (lines=8) @@ | ||
42 | $this->sut = new CheckCommand($this->command, $this->input, $this->output); |
|
43 | } |
|
44 | ||
45 | public function testCheckCommandSuccessful() |
|
46 | { |
|
47 | $this->command->method('run')->willReturn(0); |
|
48 | ||
49 | $actual = $this->sut->check(); |
|
50 | ||
51 | self::assertInstanceOf(Success::class, $actual); |
|
52 | } |
|
53 | ||
54 | public function testCheckCommandFailed() |
|
55 | { |
|
@@ 54-61 (lines=8) @@ | ||
51 | self::assertInstanceOf(Success::class, $actual); |
|
52 | } |
|
53 | ||
54 | public function testCheckCommandFailed() |
|
55 | { |
|
56 | $this->command->method('run')->willReturn(1); |
|
57 | ||
58 | $actual = $this->sut->check(); |
|
59 | ||
60 | self::assertInstanceOf(Failure::class, $actual); |
|
61 | } |
|
62 | ||
63 | public function testCheckWithPropertyOutput() |
|
64 | { |