deployer/test/recipe/StorageTest.php
Anton Medvedev c6c3f49ed3 Add storage test
Now, in parallel mode, local and parallel tasks can exchange data through config.
2017-03-25 15:05:01 +07:00

30 lines
727 B
PHP

<?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
class StorageTest extends DepCase
{
protected function load()
{
require DEPLOYER_FIXTURES . '/recipe/storage.php';
}
public function testStorage()
{
$output = $this->start('test', [
'--parallel' => true,
'--file' => DEPLOYER_FIXTURES . '/recipe/storage.php'
]);
self::assertContains('a:a', $output);
self::assertContains('b:b', $output);
self::assertContains('f:f', $output);
self::assertContains('abcdef', $output);
}
}