public function __construct($method, $param) { $this->param = new \ReflectionParameter($method, $param); $this->name = $this->param->name; if ($this->param->isDefaultValueAvailable()) { $this->default = Debug::dump($this->param->getDefaultValue()); } if ($this->param->isPassedByReference()) { $this->reference = true; } if ($this->param->isOptional()) { $this->optional = true; } }
/** * Tests Debug::dump() * * @test * @dataProvider provider_dump * @covers Debug::dump * @covers Debug::_dump * @param object $exception exception to test * @param string $expected expected output */ public function test_dump($input, $length, $limit, $expected) { $this->assertEquals($expected, Debug::dump($input, $length, $limit)); }