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">
<directory>tests/src/</directory>
</testsuite>
<testsuite name="Legacy">
<directory>tests/legacy/</directory>
</testsuite>
<testsuite name="Joy">
<directory>tests/joy/</directory>
</testsuite>

View File

@ -25,8 +25,8 @@ define('__FIXTURES__', __DIR__ . '/fixtures');
define('__REPOSITORY__', __DIR__ . '/fixtures/repository');
define('__TEMP_DIR__', sys_get_temp_dir() . '/deployer');
require_once __DIR__ . '/AbstractTest.php';
require_once __DIR__ . '/JoyTest.php';
require_once __DIR__ . '/legacy/AbstractTest.php';
require_once __DIR__ . '/joy/JoyTest.php';
// Init repository
$repository = __REPOSITORY__;

View File

@ -5,11 +5,14 @@
* file that was distributed with this source code.
*/
namespace joy;
use Deployer\Deployer;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Tester\ApplicationTester;
use const __TEMP_DIR__;
abstract class JoyTest extends TestCase
{

View File

@ -1,10 +1,13 @@
<?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 joy;
class OnFuncTest extends JoyTest
{
protected function recipe(): string