Skip to content

Commit ac03ff6

Browse files
committed
Migrate joy namespace tests to spec suite
1 parent 84eb46b commit ac03ff6

15 files changed

Lines changed: 46 additions & 50 deletions

phpunit.xml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,23 @@
55
stopOnError="false"
66
stopOnFailure="false"
77
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.5/phpunit.xsd">
8-
<source>
9-
<include>
10-
<directory>src/</directory>
11-
<directory>recipe/</directory>
12-
</include>
13-
<exclude>
14-
<directory suffix=".php">vendor/</directory>
15-
<directory>bin/</directory>
16-
</exclude>
17-
</source>
18-
<testsuites>
19-
<testsuite name="Src">
20-
<directory>tests/src/</directory>
21-
</testsuite>
22-
<testsuite name="spec">
23-
<directory>tests/spec/</directory>
24-
</testsuite>
25-
<testsuite name="Joy">
26-
<directory>tests/joy/</directory>
27-
<exclude>tests/joy/JoyTest.php</exclude>
28-
</testsuite>
29-
</testsuites>
8+
<source>
9+
<include>
10+
<directory>src/</directory>
11+
<directory>recipe/</directory>
12+
</include>
13+
<exclude>
14+
<directory suffix=".php">vendor/</directory>
15+
<directory>bin/</directory>
16+
</exclude>
17+
</source>
18+
<testsuites>
19+
<testsuite name="src">
20+
<directory>tests/src/</directory>
21+
</testsuite>
22+
<testsuite name="spec">
23+
<directory>tests/spec/</directory>
24+
<exclude>tests/spec/SpecTest.php</exclude>
25+
</testsuite>
26+
</testsuites>
3027
</phpunit>

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
define('__REPOSITORY__', __DIR__ . '/fixtures/repository');
2727
define('__TEMP_DIR__', sys_get_temp_dir() . '/deployer');
2828

29-
require_once __DIR__ . '/joy/JoyTest.php';
29+
require_once __DIR__ . '/spec/SpecTest.php';
3030

3131
// Init repository
3232
$repository = __REPOSITORY__;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace joy;
5+
namespace spec;
66

77
use Symfony\Component\Console\Output\OutputInterface;
88

9-
class ConfigCommandTest extends JoyTest
9+
class ConfigCommandTest extends SpecTest
1010
{
1111
protected function recipe(): string
1212
{

tests/spec/CurrentPathTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace Deployer;
99

10-
use joy\JoyTest;
10+
use spec\SpecTest;
1111
use Symfony\Component\Console\Output\Output;
1212

13-
class CurrentPathTest extends JoyTest
13+
class CurrentPathTest extends SpecTest
1414
{
1515
public const RECIPE = __DIR__ . '/recipe/deploy.php';
1616

tests/spec/DeployTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
namespace Deployer;
99

10-
use joy\JoyTest;
1110
use PHPUnit\Framework\Attributes\Depends;
11+
use spec\SpecTest;
1212
use Symfony\Component\Console\Output\Output;
1313

14-
class DeployTest extends JoyTest
14+
class DeployTest extends SpecTest
1515
{
1616
public const RECIPE = __DIR__ . '/recipe/deploy.php';
1717

tests/spec/EnvTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
namespace Deployer;
99

10-
use joy\JoyTest;
10+
use spec\SpecTest;
1111

12-
class EnvTest extends JoyTest
12+
class EnvTest extends SpecTest
1313
{
1414
public const RECIPE = __DIR__ . '/recipe/env.php';
1515

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
namespace joy;
11+
namespace spec;
1212

13-
class HostDefaultConfigTest extends JoyTest
13+
class HostDefaultConfigTest extends SpecTest
1414
{
1515
protected function recipe(): string
1616
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* file that was distributed with this source code.
77
*/
88

9-
namespace joy;
9+
namespace spec;
1010

11-
class OnFuncTest extends JoyTest
11+
class OnFuncTest extends SpecTest
1212
{
1313
protected function recipe(): string
1414
{

tests/spec/OncePerNodeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
namespace Deployer;
99

10-
use joy\JoyTest;
10+
use spec\SpecTest;
1111

12-
class OncePerNodeTest extends JoyTest
12+
class OncePerNodeTest extends SpecTest
1313
{
1414
public const RECIPE = __DIR__ . '/recipe/once_per_node.php';
1515

tests/spec/OnceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
namespace Deployer;
99

10-
use joy\JoyTest;
10+
use spec\SpecTest;
1111

12-
class OnceTest extends JoyTest
12+
class OnceTest extends SpecTest
1313
{
1414
public const RECIPE = __DIR__ . '/recipe/once.php';
1515

0 commit comments

Comments
 (0)