projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
test
/
PhpParser
/
Builder
/
ParamTest.php
diff --git
a/vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php
b/vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php
index d33189212ebec4f678f3c5233a71cff65105fc6b..9ed283b7a6ed5750ad7bbc4e1777799382001d4a 100644
(file)
--- a/
vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php
+++ b/
vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php
@@
-80,9
+80,9
@@
class ParamTest extends TestCase
}
/**
}
/**
- * @dataProvider provideTestType
Hint
s
+ * @dataProvider provideTestTypes
*/
*/
- public function testType
Hint
s($typeHint, $expectedType) {
+ public function testTypes($typeHint, $expectedType) {
$node = $this->createParamBuilder('test')
->setTypeHint($typeHint)
->getNode()
$node = $this->createParamBuilder('test')
->setTypeHint($typeHint)
->getNode()
@@
-100,7
+100,7
@@
class ParamTest extends TestCase
$this->assertEquals($expectedType, $type);
}
$this->assertEquals($expectedType, $type);
}
- public function provideTestType
Hint
s() {
+ public function provideTestTypes() {
return [
['array', new Node\Identifier('array')],
['callable', new Node\Identifier('callable')],
return [
['array', new Node\Identifier('array')],
['callable', new Node\Identifier('callable')],
@@
-129,20
+129,16
@@
class ParamTest extends TestCase
];
}
];
}
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Parameter type cannot be void
- */
public function testVoidTypeError() {
public function testVoidTypeError() {
- $this->createParamBuilder('test')->setTypeHint('void');
+ $this->expectException(\LogicException::class);
+ $this->expectExceptionMessage('Parameter type cannot be void');
+ $this->createParamBuilder('test')->setType('void');
}
}
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Type must be a string, or an instance of Name, Identifier or NullableType
- */
public function testInvalidTypeError() {
public function testInvalidTypeError() {
- $this->createParamBuilder('test')->setTypeHint(new \stdClass);
+ $this->expectException(\LogicException::class);
+ $this->expectExceptionMessage('Type must be a string, or an instance of Name, Identifier or NullableType');
+ $this->createParamBuilder('test')->setType(new \stdClass);
}
public function testByRef() {
}
public function testByRef() {