class MockInstantiationService in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php \Drupal\Tests\Component\DependencyInjection\MockInstantiationService
Helper class to test Container::get() method for varying number of parameters.
@group DependencyInjection
Hierarchy
- class \Drupal\Tests\Component\DependencyInjection\MockInstantiationService
Expanded class hierarchy of MockInstantiationService
File
- core/
tests/ Drupal/ Tests/ Component/ DependencyInjection/ ContainerTest.php, line 1040 - Contains \Drupal\Tests\Component\DependencyInjection\ContainerTest.
Namespace
Drupal\Tests\Component\DependencyInjectionView source
class MockInstantiationService {
/**
* @var mixed[]
*/
protected $arguments;
/**
* Construct a mock instantiation service.
*/
public function __construct() {
$this->arguments = func_get_args();
}
/**
* Return arguments injected into the service.
*
* @return mixed[]
* Return the passed arguments.
*/
public function getArguments() {
return $this->arguments;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MockInstantiationService:: |
protected | property | ||
MockInstantiationService:: |
public | function | Return arguments injected into the service. | |
MockInstantiationService:: |
public | function | Construct a mock instantiation service. |