13
13
14
14
namespace Pusher \Tests \Laravel ;
15
15
16
+ use InvalidArgumentException ;
16
17
use Pusher \Laravel \PusherFactory ;
17
18
use Pusher \Pusher ;
18
19
@@ -40,13 +41,12 @@ public function testMakeStandard()
40
41
$ this ->assertInstanceOf (Pusher::class, $ return );
41
42
}
42
43
43
- /**
44
- * @expectedException \InvalidArgumentException
45
- */
46
44
public function testMakeWithoutAuthKey ()
47
45
{
48
46
$ factory = $ this ->getPusherFactory ();
49
47
48
+ $ this ->expectException (InvalidArgumentException::class);
49
+
50
50
$ factory ->make ([
51
51
'secret ' => 'your-secret ' ,
52
52
'app_id ' => 'your-app-id ' ,
@@ -57,13 +57,12 @@ public function testMakeWithoutAuthKey()
57
57
]);
58
58
}
59
59
60
- /**
61
- * @expectedException \InvalidArgumentException
62
- */
63
60
public function testMakeWithoutAppId ()
64
61
{
65
62
$ factory = $ this ->getPusherFactory ();
66
63
64
+ $ this ->expectException (InvalidArgumentException::class);
65
+
67
66
$ factory ->make ([
68
67
'auth_key ' => 'your-auth-key ' ,
69
68
'secret ' => 'your-secret ' ,
@@ -74,13 +73,12 @@ public function testMakeWithoutAppId()
74
73
]);
75
74
}
76
75
77
- /**
78
- * @expectedException \InvalidArgumentException
79
- */
80
76
public function testMakeWithoutSecret ()
81
77
{
82
78
$ factory = $ this ->getPusherFactory ();
83
79
80
+ $ this ->expectException (InvalidArgumentException::class);
81
+
84
82
$ factory ->make ([
85
83
'auth_key ' => 'your-auth-key ' ,
86
84
'app_id ' => 'your-app-id ' ,
0 commit comments