Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TemplateLoader.php

function TemplateLoader::loadTemplate

@psalm-suppress MissingThrowsDocblock

6 calls to TemplateLoader::loadTemplate()
Generator::generateClassFromWsdl in vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php
Generator::generateCodeForTestDoubleClass in vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php
Generator::mockObjectForTrait in vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php
Returns a mock object for the specified trait with all abstract methods of the trait mocked. Concrete methods to mock can be specified with the `$mockedMethods` parameter.
Generator::objectForTrait in vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php
Returns an object for the specified trait.
Generator::testDoubleForInterfaceIntersection in vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php
@psalm-param list<class-string> $interfaces

... See full list

File

vendor/phpunit/phpunit/src/Framework/MockObject/Generator/TemplateLoader.php, line 29

Class

TemplateLoader
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Framework\MockObject\Generator

Code

private function loadTemplate(string $template) : Template {
    $filename = __DIR__ . '/templates/' . $template;
    if (!isset(self::$templates[$filename])) {
        self::$templates[$filename] = new Template($filename);
    }
    return self::$templates[$filename];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal