/** @dataProvider PHPViewDataProvider */ public function testPHPViewDirectRender($view, $extensions) { Views::addLocation(new FilesystemLocation(__DIR__ . '/fixtures', $extensions)); $html = Views::render($view, ['title' => 'Dynamic Title']); $this->assertEquals(file_get_contents(__DIR__ . '/fixtures/php-view-result.html'), $html); }