/** * */ public function testSimplePostRenderHookPriority2() { $t = new Template('simple'); $t->set('content', 'pass'); $t->addPostRenderHook('strtoupper', 70); $t->addPostRenderHook('strtolower', 20); $this->assertSame(2, count($t->getPostRenderHooks())); $this->assertSame('PASS', $t->render()); $t->removePostRenderHook('strtoupper'); $this->assertSame(1, count($t->getPostRenderHooks())); $this->assertSame('pass', $t->render()); $t->removePostRenderHook('strtolower'); $this->assertSame(0, count($t->getPostRenderHooks())); $this->assertSame('pass', $t->render()); }