public function testCustomFormatter() { $template = ' <div>Test</div> '; $tss = 'div {content: "test"; format: reverse}'; $template = new \Transphporm\Builder($template, $tss); require_once 'tests/ReverseFormatter.php'; $template->registerFormatter(new ReverseFormatter()); $this->assertEquals('<div>tset</div>', $this->stripTabs($template->output()->body)); }