pastebin

Paste Search Dynamic
Recent pastes
autoclosing
  1. <?php
  2.  
  3. /**
  4.  * Test: {block} autoclosing
  5.  */
  6.  
  7. use TesterAssert;
  8.  
  9.  
  10. require __DIR__ . '/../bootstrap.php';
  11.  
  12.  
  13. $latte = new LatteEngine;
  14. $latte->setLoader(new LatteLoadersStringLoader);
  15.  
  16. assert::match(
  17.         'Block',
  18.         $latte->renderToString('{block}Block')
  19. );
Parsed in 0.014 seconds