Vous êtes connecté en tant que anonymous Se Deconnecter
instance = new MustacheRenderer(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 render(). * * @return void * * @covers \Windwalker\Renderer\MustacheRenderer::render */ public function testRender() { $html = $this->instance->render('hello', new Chris()); $expect = <<assertDomStringEqualsDomString($expect, $html); } /** * Method to test getEngine(). * * @return void * * @covers \Windwalker\Renderer\MustacheRenderer::getEngine * @TODO Implement testGetEngine(). */ public function testGetEngine() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } /** * Method to test setEngine(). * * @return void * * @covers \Windwalker\Renderer\MustacheRenderer::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 getLoader(). * * @return void * * @covers \Windwalker\Renderer\MustacheRenderer::getLoader * @TODO Implement testGetLoader(). */ public function testGetLoader() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } /** * Method to test setLoader(). * * @return void * * @covers \Windwalker\Renderer\MustacheRenderer::setLoader * @TODO Implement testSetLoader(). */ public function testSetLoader() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } } /** * The Chris class. * * @since 2.0 */ class Chris { /** * Property name. * * @var string */ public $name = "Chris"; /** * Property value. * * @var int */ public $value = 10000; /** * taxed_value * * @return int */ public function taxed_value() { return $this->value - ($this->value * 0.4); } /** * Property in_ca. * * @var bool */ public $in_ca = true; }