|
@@ 216-224 (lines=9) @@
|
| 213 |
|
/** |
| 214 |
|
* @covers \Kint\Object\MethodObject::getParams |
| 215 |
|
*/ |
| 216 |
|
public function testGetParamsPhp7() |
| 217 |
|
{ |
| 218 |
|
if (!KINT_PHP70) { |
| 219 |
|
$this->markTestSkipped('Not testing PHP7+ parameter type hints on PHP5'); |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
$m = new MethodObject(new ReflectionMethod('Kint\\Test\\Fixtures\\Php7TestClass', 'typeHints')); |
| 223 |
|
$this->assertEquals('string $p1, int $p2, bool $p3 = false', $m->getParams()); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
/** |
| 227 |
|
* @covers \Kint\Object\MethodObject::__construct |
|
@@ 229-237 (lines=9) @@
|
| 226 |
|
/** |
| 227 |
|
* @covers \Kint\Object\MethodObject::__construct |
| 228 |
|
*/ |
| 229 |
|
public function testReturnType() |
| 230 |
|
{ |
| 231 |
|
if (!KINT_PHP70) { |
| 232 |
|
$this->markTestSkipped('Not testing PHP7+ return type hints on PHP5'); |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
$m = new MethodObject(new ReflectionMethod('Kint\\Test\\Fixtures\\Php7TestClass', 'typeHints')); |
| 236 |
|
$this->assertEquals('self', $m->returntype); |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
/** |
| 240 |
|
* @covers \Kint\Object\MethodObject::getPhpDocUrl |