/** * */ public function testRenderBlock() { $blockRender = $this->injector->make('JigTest\\PlaceHolder\\PlaceHolderPlugin'); $this->jigDispatcher->addPlugin($blockRender); $contents = $this->jigDispatcher->renderTemplateFile('block/renderBlock'); $this->assertEquals(1, $blockRender->blockStartCallCount); $this->assertEquals(1, $blockRender->blockEndCallCount); $this->assertEquals("foo='bar'", $blockRender->passedSegementText); $this->assertContains("This is in a warning block", $contents); $this->assertContains("</span>", $contents); $this->assertContains("<span class='warning'>", $contents); $this->assertContains("This is in a warning block", $contents); }