File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
- name : PHP Composer CI Tests
1
+ name : CI Tests
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change 1
- name : PHP Composer PHPStan Tests
1
+ name : PHPStan Checks
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change 7
7
use Nuxtifyts \PhpDto \Exceptions \DeserializeException ;
8
8
use Nuxtifyts \PhpDto \Exceptions \SerializeException ;
9
9
use Nuxtifyts \PhpDto \Tests \Dummies \AddressData ;
10
+ use Nuxtifyts \PhpDto \Tests \Dummies \ComputedPropertiesData ;
10
11
use Nuxtifyts \PhpDto \Tests \Dummies \CoordinatesData ;
11
12
use Nuxtifyts \PhpDto \Tests \Dummies \CountryData ;
12
13
use Nuxtifyts \PhpDto \Tests \Dummies \Enums \YesNoBackedEnum ;
42
43
#[UsesClass(UnionMultipleComplexData::class)]
43
44
#[UsesClass(UserLocationData::class)]
44
45
#[UsesClass(UserGroupData::class)]
46
+ #[UsesClass(ComputedPropertiesData::class)]
45
47
final class BaseDataTest extends UnitCase
46
48
{
47
49
/**
@@ -464,6 +466,19 @@ public static function will_perform_serialization_and_deserialization_data_provi
464
466
'users ' => [1 , 2 ]
465
467
],
466
468
'expectedSerializedData ' => $ data
469
+ ],
470
+ 'Computed properties data ' => [
471
+ 'dtoClass ' => ComputedPropertiesData::class,
472
+ 'data ' => $ data = [
473
+ 'a ' => 'a ' ,
474
+ 'b ' => 'b '
475
+ ],
476
+ 'expectedProperties ' => [
477
+ 'a ' => 'a ' ,
478
+ 'b ' => 'b ' ,
479
+ 'c ' => 'ab '
480
+ ],
481
+ 'expectedSerializedData ' => $ data
467
482
]
468
483
];
469
484
}
You can’t perform that action at this time.
0 commit comments