Separate legacy and joy tests

This commit is contained in:
Anton Medvedev 2022-03-13 17:08:44 +01:00
parent cab76aee6b
commit 28615d075b
24 changed files with 11 additions and 2 deletions

View File

@ -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>

View File

@ -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__;

View File

@ -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
{ {

View File

@ -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