Skip to content

Commit d6a827e

Browse files
committed
Updated Deprecated Function in unit tests
1 parent e180dca commit d6a827e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/SubscriptionFactoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SubscriptionFactoryTest extends \Orchestra\Testbench\TestCase
1515
* @covers Userdesk\Subscription\SubscriptionFactory::createService
1616
*/
1717
public function testCreateServiceThrowsExceptionIfNoConfig(){
18-
$this->setExpectedException('\\Userdesk\Subscription\Exceptions\SubscriptionException');
18+
$this->expectException('\\Userdesk\Subscription\Exceptions\SubscriptionException');
1919
$factory = new SubscriptionFactory();
2020
$service = $factory->createService('paypal');
2121
}
@@ -52,7 +52,7 @@ public function testCreateServicePreLoaded(){
5252
* @covers Userdesk\Subscription\SubscriptionFactory::registerService
5353
*/
5454
public function testRegisterServiceThrowsExceptionIfNonExistentClass(){
55-
$this->setExpectedException('\\Userdesk\Subscription\Exceptions\SubscriptionException');
55+
$this->expectException('\\Userdesk\Subscription\Exceptions\SubscriptionException');
5656
$factory = new SubscriptionFactory();
5757
$factory->registerService('foo', 'bar');
5858
}
@@ -61,7 +61,7 @@ public function testRegisterServiceThrowsExceptionIfNonExistentClass(){
6161
* @covers Userdesk\Subscription\SubscriptionFactory::registerService
6262
*/
6363
public function testRegisterServiceThrowsExceptionIfClassNotFulfillsContract(){
64-
$this->setExpectedException('\\Userdesk\Subscription\Exceptions\SubscriptionException');
64+
$this->expectException('\\Userdesk\Subscription\Exceptions\SubscriptionException');
6565
$factory = new SubscriptionFactory();
6666
$factory->registerService('foo', 'Userdesk\\Subscription\\SubscriptionFactory');
6767
}

0 commit comments

Comments
 (0)