@@ -62,7 +62,7 @@ public function testGetSetUsername()
62
62
public function testGetBridge ()
63
63
{
64
64
// Mock transport
65
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
65
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
66
66
array (
67
67
'sendRequest '
68
68
));
@@ -87,7 +87,7 @@ public function testGetBridge()
87
87
public function testGetUsers ()
88
88
{
89
89
// Mock transport
90
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
90
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
91
91
array (
92
92
'sendRequest '
93
93
));
@@ -127,7 +127,7 @@ public function testGetUsers()
127
127
public function testGetLights ()
128
128
{
129
129
// Mock transport
130
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
130
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
131
131
array (
132
132
'sendRequest '
133
133
));
@@ -168,7 +168,7 @@ public function testGetLights()
168
168
public function testGetGroups ()
169
169
{
170
170
// Mock transport
171
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
171
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
172
172
array (
173
173
'sendRequest '
174
174
));
@@ -209,7 +209,7 @@ public function testGetGroups()
209
209
public function testGetSchedules ()
210
210
{
211
211
// Mock transport
212
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
212
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
213
213
array (
214
214
'sendRequest '
215
215
));
@@ -247,7 +247,7 @@ public function testGetSchedules()
247
247
public function testGetScenes ()
248
248
{
249
249
// Mock transport
250
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
250
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
251
251
array (
252
252
'sendRequest '
253
253
));
@@ -290,7 +290,7 @@ public function testGetScenes()
290
290
public function testGetSensors ()
291
291
{
292
292
// Mock transport
293
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
293
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
294
294
array (
295
295
'sendRequest '
296
296
));
@@ -327,7 +327,7 @@ public function testGetSensors()
327
327
public function testGetRules ()
328
328
{
329
329
// Mock transport
330
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
330
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
331
331
array (
332
332
'sendRequest '
333
333
));
@@ -364,7 +364,7 @@ public function testGetRules()
364
364
public function testGetTimezones ()
365
365
{
366
366
// Mock transport
367
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' ,
367
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' ,
368
368
array (
369
369
'sendRequest ' ,
370
370
'sendRequestBypassBodyValidation '
@@ -409,7 +409,7 @@ public function testInstantiateDefaultTransport()
409
409
public function testPassingTransportDependency ()
410
410
{
411
411
// Mock transport
412
- $ mockTransport = $ this ->getMock ('\Phue\Transport\TransportInterface ' );
412
+ $ mockTransport = $ this ->createMock ('\Phue\Transport\TransportInterface ' );
413
413
414
414
$ this ->client ->setTransport ($ mockTransport );
415
415
@@ -424,7 +424,7 @@ public function testPassingTransportDependency()
424
424
public function testSendCommand ()
425
425
{
426
426
// Mock command
427
- $ mockCommand = $ this ->getMock ('Phue\Command\CommandInterface ' ,
427
+ $ mockCommand = $ this ->createMock ('Phue\Command\CommandInterface ' ,
428
428
array (
429
429
'send '
430
430
));
0 commit comments