public function MockMatcher::__construct

File

drupal/core/modules/system/lib/Drupal/system/Tests/Routing/MockMatcher.php, line 29
Definition of Drupal\system\Tests\Routing\MockMatcher.

Class

MockMatcher
A mock matcher that can be configured with any matching logic for testing.

Namespace

Drupal\system\Tests\Routing

Code

public function __construct(Closure $matcher) {
  $this->matcher = $matcher;
}