public function testSetLayoutTokens() { $tokens = array('head' => '<title>Neechy</title>', 'top' => '<h1>Neechy</h1>', 'middle' => 'middle', 'bottom' => '<footer>bottom</footer>'); $templater = new NeechyTemplater('no-theme'); foreach ($tokens as $token => $content) { $templater->set($token, $content); } $output = $templater->render(); foreach ($tokens as $token => $content) { $this->assertContains($content, $output); } }