Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | public function testBuild() |
||
22 | { |
||
23 | $contextBuilder = new ContextBuilder(); |
||
24 | $contextBuilder->from('ubuntu:precise'); |
||
25 | $contextBuilder->add('/test', 'test file content'); |
||
26 | |||
27 | $buildStream = $this->buildHelper->build($contextBuilder->getContext(), 'test-image'); |
||
28 | $lastMessage = ""; |
||
29 | |||
30 | $buildStream->onFrame(function (BuildFrame $frame) use (&$lastMessage) { |
||
31 | $lastMessage = $frame->getStream(); |
||
32 | }); |
||
33 | |||
34 | $buildStream->wait(); |
||
35 | |||
36 | $this->assertContains("Successfully built" ,$lastMessage); |
||
37 | } |
||
38 | } |
||
39 |