We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcb41ff commit 2ef0886Copy full SHA for 2ef0886
tests/React/Curry/BindTest.php
@@ -45,15 +45,15 @@ public function testBindWithMultiplePlaceholders()
45
$this->assertSame(48, $prodTwo(3, 8));
46
}
47
48
+ /**
49
+ * @expectedException InvalidArgumentException
50
+ * @expectedExceptionMessage Cannot resolve parameter placeholder at position 0. Parameter stack is empty
51
+ */
52
public function testStringConversion()
53
{
54
$add = $this->createAddFunction();
55
$addTwo = bind($add, …(), 2);
56
- $this->setExpectedException(
- 'InvalidArgumentException',
- 'Cannot resolve parameter placeholder at position 0. Parameter stack is empty'
- );
57
$addTwo();
58
59
0 commit comments