@@ -21,14 +21,14 @@ public function testCreateChatMessage()
21
21
22
22
public function testListChatMessage ()
23
23
{
24
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
24
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
25
25
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'messages ' , array ('offset ' => 100 , 'limit ' => 30 ), null );
26
26
$ ChatMessageList = $ this ->client ->chatMessages ->getList (array ('offset ' => 100 , 'limit ' => 30 ));
27
27
}
28
28
29
29
public function testReadChatMessage ()
30
30
{
31
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
31
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
32
32
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'messages/id ' , null , null );
33
33
$ ChatMessageList = $ this ->client ->chatMessages ->read ("id " );
34
34
}
@@ -53,21 +53,21 @@ public function testCreateChatChannel()
53
53
54
54
public function testListChatChannels ()
55
55
{
56
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
56
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
57
57
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'channels ' , array ('offset ' => 100 , 'limit ' => 30 ), null );
58
58
$ ChannelList = $ this ->client ->chatChannels ->getList (array ('offset ' => 100 , 'limit ' => 30 ));
59
59
}
60
60
61
61
public function testReadChatChannel ()
62
62
{
63
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
63
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
64
64
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'channels/id ' , null , null );
65
65
$ Channel = $ this ->client ->chatChannels ->read ("id " );
66
66
}
67
67
68
68
public function testDeleteChannel ()
69
69
{
70
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
70
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
71
71
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("DELETE " , 'channels/id ' , null , null );
72
72
$ Channel = $ this ->client ->chatChannels ->delete ("id " );
73
73
}
@@ -85,35 +85,35 @@ public function testUpdateChatChannel()
85
85
86
86
public function testListChatPlatforms ()
87
87
{
88
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
88
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
89
89
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'platforms ' , array ('offset ' => 100 , 'limit ' => 30 ), null );
90
90
$ ChannelList = $ this ->client ->chatPlatforms ->getList (array ('offset ' => 100 , 'limit ' => 30 ));
91
91
}
92
92
93
93
public function testReadChatPlatform ()
94
94
{
95
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
95
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
96
96
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'platforms/id ' , null , null );
97
97
$ Channel = $ this ->client ->chatPlatforms ->read ("id " );
98
98
}
99
99
100
100
public function testListChatContacts ()
101
101
{
102
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
102
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
103
103
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'contacts ' , array ('offset ' => 100 , 'limit ' => 30 ), null );
104
104
$ ContactList = $ this ->client ->chatContacts ->getList (array ('offset ' => 100 , 'limit ' => 30 ));
105
105
}
106
106
107
107
public function testReadChatContact ()
108
108
{
109
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
109
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
110
110
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("GET " , 'contacts/id ' , null , null );
111
111
$ Contact = $ this ->client ->chatContacts ->read ("id " );
112
112
}
113
113
114
114
public function testDeleteContact ()
115
115
{
116
- $ this ->expectException (' MessageBird\Exceptions\ServerException ' );
116
+ $ this ->expectException (\ MessageBird \Exceptions \ServerException::class );
117
117
$ this ->mockClient ->expects ($ this ->once ())->method ('performHttpRequest ' )->with ("DELETE " , 'contacts/id ' , null , null );
118
118
$ contact = $ this ->client ->chatContacts ->delete ("id " );
119
119
}
0 commit comments