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
22
33on :
44 push :
Original file line number Diff line number Diff line change 1- name : PHP Composer PHPStan Tests
1+ name : PHPStan Checks
22
33on :
44 push :
Original file line number Diff line number Diff line change 77use Nuxtifyts \PhpDto \Exceptions \DeserializeException ;
88use Nuxtifyts \PhpDto \Exceptions \SerializeException ;
99use Nuxtifyts \PhpDto \Tests \Dummies \AddressData ;
10+ use Nuxtifyts \PhpDto \Tests \Dummies \ComputedPropertiesData ;
1011use Nuxtifyts \PhpDto \Tests \Dummies \CoordinatesData ;
1112use Nuxtifyts \PhpDto \Tests \Dummies \CountryData ;
1213use Nuxtifyts \PhpDto \Tests \Dummies \Enums \YesNoBackedEnum ;
4243#[UsesClass(UnionMultipleComplexData::class)]
4344#[UsesClass(UserLocationData::class)]
4445#[UsesClass(UserGroupData::class)]
46+ #[UsesClass(ComputedPropertiesData::class)]
4547final class BaseDataTest extends UnitCase
4648{
4749 /**
@@ -464,6 +466,19 @@ public static function will_perform_serialization_and_deserialization_data_provi
464466 'users ' => [1 , 2 ]
465467 ],
466468 '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
467482 ]
468483 ];
469484 }
You can’t perform that action at this time.
0 commit comments