@@ 265-277 (lines=13) @@ | ||
262 | /** |
|
263 | * @expectedException GuzzleHttp\Exception\RequestException |
|
264 | */ |
|
265 | public function testWaitWithTimeout() |
|
266 | { |
|
267 | if (getenv('DOCKER_TLS_VERIFY')) { |
|
268 | $this->markTestSkipped('This test failed when using ssl due to this bug : https://bugs.php.net/bug.php?id=41631'); |
|
269 | } |
|
270 | ||
271 | $container = new Container(['Image' => 'ubuntu:precise', 'Cmd' => ['/bin/sleep', '2']]); |
|
272 | ||
273 | $manager = $this->getManager(); |
|
274 | $manager->create($container); |
|
275 | $manager->start($container); |
|
276 | $manager->wait($container, 1); |
|
277 | } |
|
278 | ||
279 | public function testTimeoutExceptionHasRequest() |
|
280 | { |
|
@@ 279-295 (lines=17) @@ | ||
276 | $manager->wait($container, 1); |
|
277 | } |
|
278 | ||
279 | public function testTimeoutExceptionHasRequest() |
|
280 | { |
|
281 | if (getenv('DOCKER_TLS_VERIFY')) { |
|
282 | $this->markTestSkipped('This test failed when using ssl due to this bug : https://bugs.php.net/bug.php?id=41631'); |
|
283 | } |
|
284 | ||
285 | $container = new Container(['Image' => 'ubuntu:precise', 'Cmd' => ['/bin/sleep', '2']]); |
|
286 | ||
287 | $manager = $this->getManager(); |
|
288 | $manager->run($container); |
|
289 | ||
290 | try { |
|
291 | $manager->wait($container, 1); |
|
292 | } catch (RequestException $e) { |
|
293 | $this->assertInstanceOf('Docker\\Http\\Request', $e->getRequest()); |
|
294 | } |
|
295 | } |
|
296 | ||
297 | public function testExposeFixedPort() |
|
298 | { |