Skip to content

Commit e0bdbd9

Browse files
committed
Add test for partial constructor application
1 parent a7fa148 commit e0bdbd9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/php/lang/ast/unittest/emit/EmulatePipelinesTest.class.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ public function to_partial_function_application() {
6363
);
6464
}
6565

66+
#[Test]
67+
public function to_partial_constructor_application() {
68+
Assert::equals(
69+
'new \\util\\Date("2025-07-12",$timezone);',
70+
$this->emit('"2025-07-12" |> new \\util\\Date(?, $timezone);')
71+
);
72+
}
73+
6674
#[Test]
6775
public function chained() {
6876
Assert::equals(

0 commit comments

Comments
 (0)