Skip to content

Commit 3efc8d0

Browse files
committed
Updated deprecated phpunit API calls
1 parent a4daaa6 commit 3efc8d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Spork/Test/Deferred/DeferredAggregateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DeferredAggregateTest extends TestCase
2121
{
2222
public function testInvalidChild()
2323
{
24-
$this->setExpectedException('Spork\Exception\UnexpectedTypeException', 'PromiseInterface');
24+
$this->expectException('Spork\Exception\UnexpectedTypeException', 'PromiseInterface');
2525

2626
$defer = new DeferredAggregate(array('asdf'));
2727
}

tests/Spork/Test/Deferred/DeferredTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testMultipleResolve($method)
9797
*/
9898
public function testInvalidResolve($method, $invalid)
9999
{
100-
$this->setExpectedException('LogicException', 'that has already been');
100+
$this->expectException('LogicException', 'that has already been');
101101

102102
$this->defer->$method();
103103
$this->defer->$invalid();
@@ -124,7 +124,7 @@ public function testAlreadyResolved($resolve, $queue, $expect = true)
124124
*/
125125
public function testInvalidCallback($method, $invalid)
126126
{
127-
$this->setExpectedException('Spork\Exception\UnexpectedTypeException', 'callable');
127+
$this->expectException('Spork\Exception\UnexpectedTypeException', 'callable');
128128

129129
$this->defer->$method($invalid);
130130
}

0 commit comments

Comments
 (0)