Skip to content

Commit

Permalink
Fix readonly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Aug 27, 2024
1 parent 8a578bb commit f55a373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"keywords": ["module", "xp"],
"require" : {
"xp-framework/core": "^12.0 | ^11.6 | ^10.16",
"xp-framework/reflection": "^3.0 | ^2.13",
"xp-framework/reflection": "^3.2 | ^2.15",
"xp-framework/ast": "^11.1",
"php" : ">=7.4.0"
},
Expand Down
8 changes: 4 additions & 4 deletions src/test/php/lang/ast/unittest/emit/ReadonlyTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function class_declaration() {
}');

Assert::equals(
'public readonly int $fixture',
'public readonly protected(set) int $fixture',
$t->property('fixture')->toString()
);
}
Expand All @@ -39,7 +39,7 @@ public function property_declaration() {
}');

Assert::equals(
'public readonly int $fixture',
'public readonly protected(set) int $fixture',
$t->property('fixture')->toString()
);
}
Expand All @@ -51,7 +51,7 @@ public function __construct(public string $fixture) { }
}');

Assert::equals(
'public readonly string $fixture',
'public readonly protected(set) string $fixture',
$t->property('fixture')->toString()
);
Assert::equals('Test', $t->newInstance('Test')->fixture);
Expand All @@ -64,7 +64,7 @@ public function __construct(public readonly string $fixture) { }
}');

Assert::equals(
'public readonly string $fixture',
'public readonly protected(set) string $fixture',
$t->property('fixture')->toString()
);
Assert::equals('Test', $t->newInstance('Test')->fixture);
Expand Down

0 comments on commit f55a373

Please sign in to comment.