Skip to content

Commit 3aac619

Browse files
committed
Update tests to Codeception 5 dir structure
1 parent 70c2f6d commit 3aac619

File tree

14 files changed

+26
-16
lines changed

14 files changed

+26
-16
lines changed

codeception.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
namespace: Tests
2+
support_namespace: Support
3+
4+
settings:
5+
shuffle: true
6+
lint: true
17
paths:
28
tests: tests
39
output: tests/_output
4-
data: tests/_data
5-
support: tests/_support
6-
envs: tests/_envs
7-
actor_suffix: Tester
10+
support: tests/Support
11+
data: tests/Support/Data
12+

tests/_data/DummyClass.php renamed to tests/Support/Data/DummyClass.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
declare(strict_types=1);
44

5+
namespace Support\Data;
6+
57
class DummyClass
68
{
79
private int $foo;
8-
10+
911
private static int $staticFoo;
1012
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
<?php
22

3+
declare(strict_types=1);
4+
5+
namespace Tests\Support;
36

47
/**
58
* Inherited Methods
6-
* @method void wantToTest($text)
79
* @method void wantTo($text)
10+
* @method void wantToTest($text)
811
* @method void execute($callable)
912
* @method void expectTo($prediction)
1013
* @method void expect($prediction)
1114
* @method void amGoingTo($argumentation)
1215
* @method void am($role)
1316
* @method void lookForwardTo($achieveValue)
1417
* @method void comment($description)
15-
* @method void pause()
18+
* @method void pause($vars = [])
1619
*
1720
* @SuppressWarnings(PHPMD)
1821
*/
1922
class UnitTester extends \Codeception\Actor
2023
{
2124
use _generated\UnitTesterActions;
2225

23-
/**
24-
* Define custom actions here
25-
*/
26+
/**
27+
* Define custom actions here
28+
*/
2629
}

tests/Support/_generated/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

tests/_support/_generated/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/unit.suite.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Codeception Test Suite Configuration
2-
3-
# suite for unit (internal) tests.
4-
error_level: "E_ALL"
5-
class_name: UnitTester
1+
actor: UnitTester
2+
suite_namespace: Tests\Unit
3+
modules:
4+
enabled: []

0 commit comments

Comments
 (0)