File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,27 @@ public function testMultipleStackPush()
443
443
$ this ->assertSame ('hi, Hello! ' , $ factory ->yieldPushContent ('foo ' ));
444
444
}
445
445
446
+ public function testSingleStackPrepend ()
447
+ {
448
+ $ factory = $ this ->getFactory ();
449
+ $ factory ->startPrepend ('foo ' );
450
+ echo 'hi ' ;
451
+ $ factory ->stopPrepend ();
452
+ $ this ->assertSame ('hi ' , $ factory ->yieldPushContent ('foo ' ));
453
+ }
454
+
455
+ public function testMultipleStackPrepend ()
456
+ {
457
+ $ factory = $ this ->getFactory ();
458
+ $ factory ->startPrepend ('foo ' );
459
+ echo ', Hello! ' ;
460
+ $ factory ->stopPrepend ();
461
+ $ factory ->startPrepend ('foo ' );
462
+ echo 'hi ' ;
463
+ $ factory ->stopPrepend ();
464
+ $ this ->assertSame ('hi, Hello! ' , $ factory ->yieldPushContent ('foo ' ));
465
+ }
466
+
446
467
public function testSessionAppending ()
447
468
{
448
469
$ factory = $ this ->getFactory ();
You can’t perform that action at this time.
0 commit comments