@@ 398-413 (lines=16) @@ | ||
395 | $manager->removeContainers($containers); |
|
396 | } |
|
397 | ||
398 | public function testForceRemoveContainers() |
|
399 | { |
|
400 | $containers = ['3360ea744df2', 'a412d121d015']; |
|
401 | $manager = $this |
|
402 | ->getMockBuilder('\Docker\Manager\ContainerManager') |
|
403 | ->setMethods(['remove']) |
|
404 | ->disableOriginalConstructor() |
|
405 | ->getMock(); |
|
406 | ||
407 | $manager->expects($this->exactly(2)) |
|
408 | ->method('remove') |
|
409 | ->with($this->isInstanceOf('\Docker\Container'), false, true) |
|
410 | ->will($this->returnSelf()); |
|
411 | ||
412 | $manager->removeContainers($containers, false, true); |
|
413 | } |
|
414 | ||
415 | public function testTop() |
|
416 | { |
@@ 87-102 (lines=16) @@ | ||
84 | $manager->inspect($image); |
|
85 | } |
|
86 | ||
87 | public function testRemoveImages() |
|
88 | { |
|
89 | $containers = ['ubuntu:precise', '69c02692b0c1']; |
|
90 | $manager = $this |
|
91 | ->getMockBuilder('\Docker\Manager\ImageManager') |
|
92 | ->setMethods(['remove']) |
|
93 | ->disableOriginalConstructor() |
|
94 | ->getMock(); |
|
95 | ||
96 | $manager->expects($this->exactly(2)) |
|
97 | ->method('remove') |
|
98 | ->with($this->isInstanceOf('\Docker\Image'), false, false) |
|
99 | ->will($this->returnSelf()); |
|
100 | ||
101 | $manager->removeImages($containers); |
|
102 | } |
|
103 | ||
104 | public function testSearch() |
|
105 | { |