File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/test/php/lang/ast/unittest Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function creates_unique_temporary_variables() {
18
18
}
19
19
20
20
#[Test]
21
- public function writes_php_open_tag_as_default_preable () {
21
+ public function writes_php_open_tag_as_default_preamble () {
22
22
$ out = new MemoryOutputStream ();
23
23
$ r = new Result (new StringWriter ($ out ));
24
24
Assert::equals ('<?php ' , $ out ->bytes ());
@@ -30,4 +30,12 @@ public function writes_preamble($preamble) {
30
30
$ r = new Result (new StringWriter ($ out ), $ preamble );
31
31
Assert::equals ($ preamble , $ out ->bytes ());
32
32
}
33
+
34
+ #[Test]
35
+ public function write () {
36
+ $ out = new MemoryOutputStream ();
37
+ $ r = new Result (new StringWriter ($ out ));
38
+ $ r ->out ->write ('echo "Hello"; ' );
39
+ Assert::equals ('<?php echo "Hello"; ' , $ out ->bytes ());
40
+ }
33
41
}
You can’t perform that action at this time.
0 commit comments