Skip to content

Commit 2ef0886

Browse files
committed
Using annotations in tests
1 parent fcb41ff commit 2ef0886

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/React/Curry/BindTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ public function testBindWithMultiplePlaceholders()
4545
$this->assertSame(48, $prodTwo(3, 8));
4646
}
4747

48+
/**
49+
* @expectedException InvalidArgumentException
50+
* @expectedExceptionMessage Cannot resolve parameter placeholder at position 0. Parameter stack is empty
51+
*/
4852
public function testStringConversion()
4953
{
5054
$add = $this->createAddFunction();
5155
$addTwo = bind($add, (), 2);
5256

53-
$this->setExpectedException(
54-
'InvalidArgumentException',
55-
'Cannot resolve parameter placeholder at position 0. Parameter stack is empty'
56-
);
5757
$addTwo();
5858
}
5959

0 commit comments

Comments
 (0)