File tree 8 files changed +20
-43
lines changed
8 files changed +20
-43
lines changed Original file line number Diff line number Diff line change 1
- name : Test and Publish
1
+ name : Unit Tests
2
2
3
3
on :
4
4
push :
15
15
- name : Setup PHP
16
16
uses : shivammathur/setup-php@v2
17
17
with :
18
- php-version : 8.1
18
+ php-version : 8.3
19
19
20
20
- name : Test
21
21
run : |
Original file line number Diff line number Diff line change 1
- actor : Tester
1
+ actor_suffix : Tester
2
+ namespace : Tests
3
+ support_namespace : Support
2
4
bootstrap : bootstrap.php
3
5
paths :
4
6
tests : tests
5
- log : tests/_output
6
- data : tests/_data
7
- support : tests/_support
7
+ output : tests/_output
8
+ data : tests/Support/Data
9
+ support : tests/Support
8
10
envs : tests/_envs
9
11
settings :
10
12
colors : true
Original file line number Diff line number Diff line change 8
8
"type" : " yii2-extension" ,
9
9
"license" : " MIT" ,
10
10
"require" : {
11
- "php" : " ^7.2|^8.0 " ,
11
+ "php" : " ^8.1 " ,
12
12
"yiisoft/yii2" : " ^2.0" ,
13
13
"sentry/sdk" : " ^3.0" ,
14
14
"ext-json" : " *"
15
15
},
16
16
"require-dev" : {
17
- "codeception/codeception" : " ^4 .0" ,
18
- "codeception/module-yii2" : " ^1.1 " ,
19
- "codeception/module-asserts" : " ^1.3 "
17
+ "codeception/codeception" : " ^5 .0" ,
18
+ "codeception/module-yii2" : " ^2.0 " ,
19
+ "codeception/module-asserts" : " ^3.0 "
20
20
},
21
21
"autoload" : {
22
22
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Helper ;
2
+ namespace Tests \ Support \ Helper ;
3
3
4
4
// here you can define custom actions
5
5
// all public methods declared in helper class will be available in $I
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ namespace Tests \Support ;
3
4
4
5
/**
5
6
* Inherited Methods
15
16
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
16
17
*
17
18
* @SuppressWarnings(PHPMD)
18
- */
19
+ */
19
20
class UnitTester extends \Codeception \Actor
20
21
{
21
22
use _generated \UnitTesterActions;
22
23
23
- /**
24
- * Define custom actions here
25
- */
24
+ /**
25
+ * Define custom actions here
26
+ */
26
27
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
configFile : ' tests/unit/config.php'
6
6
part : init
7
7
- Asserts
8
- - \Helper\Unit
8
+ - Tests\Support \Helper\Unit
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Sil \Sentry \tests \unit ;
3
+ namespace Sil \Sentry \tests \Unit ;
4
4
5
5
use Codeception \Test \Unit ;
6
6
use ReflectionClass ;
You can’t perform that action at this time.
0 commit comments