Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function testSelect() |
||
17 | { |
||
18 | $this->init(self::RECIPE); |
||
19 | $this->tester->run([ |
||
20 | 'test', |
||
21 | '-f' => self::RECIPE, |
||
22 | 'selector' => 'prod', |
||
23 | ], [ |
||
24 | 'verbosity' => Output::VERBOSITY_DEBUG, |
||
25 | ]); |
||
26 | |||
27 | $display = $this->tester->getDisplay(); |
||
28 | self::assertEquals(0, $this->tester->getStatusCode(), $display); |
||
29 | self::assertStringNotContainsString('executing on prod', $display); |
||
30 | self::assertStringContainsString('executing on beta', $display); |
||
31 | self::assertStringContainsString('executing on dev', $display); |
||
32 | } |
||
34 |