public function ParameterBindingTest::setUp in Drupal 7 to 8/9 Module Upgrader 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Routing/ ParameterBindingTest.php, line 21
Class
- ParameterBindingTest
- @group DMU.Routing
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\RoutingCode
public function setUp() {
// ParameterNode supports variadic parameters, which use the T_ELLIPSIS
// token. Which will be undefined on any PHP older than 5.6. So this kludges
// around that.
if (!defined('T_ELLIPSIS')) {
define('T_ELLIPSIS', 0);
}
$this->parameter = ParameterNode::create('foo');
}