| @@ 45-51 (lines=7) @@ | ||
| 42 | * Test simple run without error |
|
| 43 | * |
|
| 44 | */ |
|
| 45 | public function testRunSuccess() |
|
| 46 | { |
|
| 47 | $composeFiles = new ComposeFileCollection(['/var/www/docker-compose-test.yml']); |
|
| 48 | $composeFiles->setProjectName('unittest'); |
|
| 49 | ||
| 50 | $this->assertEquals($this->manager->run('test', 'echo test', $composeFiles), "test"); |
|
| 51 | } |
|
| 52 | ||
| 53 | /** |
|
| 54 | * Test run |
|
| @@ 57-63 (lines=7) @@ | ||
| 54 | * Test run |
|
| 55 | * @expectedException \DockerCompose\Exception\NoSuchServiceException |
|
| 56 | */ |
|
| 57 | public function testrunThrowNoSuchServiceException() |
|
| 58 | { |
|
| 59 | $composeFiles = new ComposeFileCollection(['/var/www/docker-compose-test.yml']); |
|
| 60 | $composeFiles->setProjectName('unittest'); |
|
| 61 | ||
| 62 | $this->manager->run('failedservice', 'echo test', $composeFiles); |
|
| 63 | } |
|
| 64 | ||
| 65 | } |
|
| 66 | ||