Vous êtes connecté en tant que anonymous Se Deconnecter
instance = new PlatesRenderer(static::$path); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void */ protected function tearDown(): void { } /** * Method to test getEngine(). * * @return void * * @covers \Windwalker\Renderer\PlatesRenderer::getEngine */ public function testGetEngine() { $this->instance->config->set('path.found', static::$path); $this->assertTrue($this->instance->getEngine() instanceof Engine); } /** * Method to test setEngine(). * * @return void * * @covers \Windwalker\Renderer\PlatesRenderer::setEngine * @TODO Implement testSetEngine(). */ public function testSetEngine() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } /** * Method to test render(). * * @return void * * @covers \Windwalker\Renderer\PlatesRenderer::render */ public function testRender() { $html = $this->instance->render('profile', ['name' => 'Tony Stark']); $expect = << User Profile

Welcome!

Hello Tony Stark

HTML; $this->assertDomStringEqualsDomString($expect, $html); } }