@@ -15,7 +15,7 @@ class SubscriptionFactoryTest extends \Orchestra\Testbench\TestCase
15
15
* @covers Userdesk\Subscription\SubscriptionFactory::createService
16
16
*/
17
17
public function testCreateServiceThrowsExceptionIfNoConfig (){
18
- $ this ->setExpectedException ('\\Userdesk\Subscription\Exceptions\SubscriptionException ' );
18
+ $ this ->expectException ('\\Userdesk\Subscription\Exceptions\SubscriptionException ' );
19
19
$ factory = new SubscriptionFactory ();
20
20
$ service = $ factory ->createService ('paypal ' );
21
21
}
@@ -52,7 +52,7 @@ public function testCreateServicePreLoaded(){
52
52
* @covers Userdesk\Subscription\SubscriptionFactory::registerService
53
53
*/
54
54
public function testRegisterServiceThrowsExceptionIfNonExistentClass (){
55
- $ this ->setExpectedException ('\\Userdesk\Subscription\Exceptions\SubscriptionException ' );
55
+ $ this ->expectException ('\\Userdesk\Subscription\Exceptions\SubscriptionException ' );
56
56
$ factory = new SubscriptionFactory ();
57
57
$ factory ->registerService ('foo ' , 'bar ' );
58
58
}
@@ -61,7 +61,7 @@ public function testRegisterServiceThrowsExceptionIfNonExistentClass(){
61
61
* @covers Userdesk\Subscription\SubscriptionFactory::registerService
62
62
*/
63
63
public function testRegisterServiceThrowsExceptionIfClassNotFulfillsContract (){
64
- $ this ->setExpectedException ('\\Userdesk\Subscription\Exceptions\SubscriptionException ' );
64
+ $ this ->expectException ('\\Userdesk\Subscription\Exceptions\SubscriptionException ' );
65
65
$ factory = new SubscriptionFactory ();
66
66
$ factory ->registerService ('foo ' , 'Userdesk \\Subscription \\SubscriptionFactory ' );
67
67
}
0 commit comments