'Flying', 'content' => 'I am on trip.', 'tags' => 'trip' ]; } else if ($template == '1usersidebar') { return [ 'tagcloud' => 'php, PaaS, bamboo' ]; } else if ($template == 'subdir/1sidebar') { return [ 'profile' => 'tyam' ]; } else { return []; } } public function testRender() { $engine = new Engine($this->basedirs, $this); $output = $engine->render('1content', $this->provideVariables('1content')); $expected = << Flying | Site
login
trip

Flying

Hi, I am on trip.
tyam tagcloud: php, PaaS, bamboo
EOT; $this->assertEquals($output, $expected); } }