mirror of
https://github.com/deployphp/deployer.git
synced 2025-01-17 05:28:15 +01:00
Separate legacy and joy tests
This commit is contained in:
parent
cab76aee6b
commit
28615d075b
@ -14,6 +14,9 @@
|
|||||||
<testsuite name="Src">
|
<testsuite name="Src">
|
||||||
<directory>tests/src/</directory>
|
<directory>tests/src/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
<testsuite name="Legacy">
|
||||||
|
<directory>tests/legacy/</directory>
|
||||||
|
</testsuite>
|
||||||
<testsuite name="Joy">
|
<testsuite name="Joy">
|
||||||
<directory>tests/joy/</directory>
|
<directory>tests/joy/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
@ -25,8 +25,8 @@ define('__FIXTURES__', __DIR__ . '/fixtures');
|
|||||||
define('__REPOSITORY__', __DIR__ . '/fixtures/repository');
|
define('__REPOSITORY__', __DIR__ . '/fixtures/repository');
|
||||||
define('__TEMP_DIR__', sys_get_temp_dir() . '/deployer');
|
define('__TEMP_DIR__', sys_get_temp_dir() . '/deployer');
|
||||||
|
|
||||||
require_once __DIR__ . '/AbstractTest.php';
|
require_once __DIR__ . '/legacy/AbstractTest.php';
|
||||||
require_once __DIR__ . '/JoyTest.php';
|
require_once __DIR__ . '/joy/JoyTest.php';
|
||||||
|
|
||||||
// Init repository
|
// Init repository
|
||||||
$repository = __REPOSITORY__;
|
$repository = __REPOSITORY__;
|
||||||
|
@ -5,11 +5,14 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace joy;
|
||||||
|
|
||||||
use Deployer\Deployer;
|
use Deployer\Deployer;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Console\Application;
|
use Symfony\Component\Console\Application;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Tester\ApplicationTester;
|
use Symfony\Component\Console\Tester\ApplicationTester;
|
||||||
|
use const __TEMP_DIR__;
|
||||||
|
|
||||||
abstract class JoyTest extends TestCase
|
abstract class JoyTest extends TestCase
|
||||||
{
|
{
|
@ -1,10 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/* (c) Anton Medvedev <anton@medv.io>
|
/* (c) Anton Medvedev <anton@medv.io>
|
||||||
*
|
*
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace joy;
|
||||||
|
|
||||||
class OnFuncTest extends JoyTest
|
class OnFuncTest extends JoyTest
|
||||||
{
|
{
|
||||||
protected function recipe(): string
|
protected function recipe(): string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user