deployphp /
deployer
| 1 | <?php |
||
| 2 | /* (c) Anton Medvedev <[email protected]> |
||
| 3 | * |
||
| 4 | * For the full copyright and license information, please view the LICENSE |
||
| 5 | * file that was distributed with this source code. |
||
| 6 | */ |
||
| 7 | |||
| 8 | namespace Deployer; |
||
| 9 | |||
| 10 | class OnceTest extends AbstractTest |
||
|
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
| 11 | { |
||
| 12 | public const RECIPE = __DIR__ . '/recipe/once.php'; |
||
| 13 | |||
| 14 | public function testOnce() |
||
| 15 | { |
||
| 16 | $this->dep(self::RECIPE, 'test_once'); |
||
| 17 | |||
| 18 | $display = $this->tester->getDisplay(); |
||
| 19 | self::assertEquals(0, $this->tester->getStatusCode(), $display); |
||
| 20 | self::assertTrue(substr_count($display, 'SHOULD BE ONCE') == 1, $display); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |