@@ -365,30 +365,30 @@ public function testDequeueItemWithiWrongArg()
365
365
public function testUseFactoryToGetJobInstance ()
366
366
{
367
367
$ payload = array (
368
- 'class ' => Some_Job_Class::class ,
368
+ 'class ' => ' Some_Job_Class ' ,
369
369
'args ' => null
370
370
);
371
371
$ job = new Resque_Job ('jobs ' , $ payload );
372
- $ factory = $ this ->getMock (Resque_Job_FactoryInterface::class );
372
+ $ factory = $ this ->getMock (' Resque_Job_FactoryInterface ' );
373
373
$ job ->setJobFactory ($ factory );
374
- $ testJob = $ this ->getMock (Resque_JobInterface::class );
374
+ $ testJob = $ this ->getMock (' Resque_JobInterface ' );
375
375
$ factory ->expects (self ::once ())->method ('create ' )->will ($ this ->returnValue ($ testJob ));
376
376
$ instance = $ job ->getInstance ();
377
- $ this ->assertInstanceOf (Resque_JobInterface::class , $ instance );
377
+ $ this ->assertInstanceOf (' Resque_JobInterface ' , $ instance );
378
378
}
379
379
380
380
public function testDoNotUseFactoryToGetInstance ()
381
381
{
382
382
$ payload = array (
383
- 'class ' => Some_Job_Class::class ,
383
+ 'class ' => ' Some_Job_Class ' ,
384
384
'args ' => null
385
385
);
386
386
$ job = new Resque_Job ('jobs ' , $ payload );
387
- $ factory = $ this ->getMock (Resque_Job_FactoryInterface::class );
388
- $ testJob = $ this ->getMock (Resque_JobInterface::class );
387
+ $ factory = $ this ->getMock (' Resque_Job_FactoryInterface ' );
388
+ $ testJob = $ this ->getMock (' Resque_JobInterface ' );
389
389
$ factory ->expects (self ::never ())->method ('create ' )->will (self ::returnValue ($ testJob ));
390
390
$ instance = $ job ->getInstance ();
391
- $ this ->assertInstanceOf (Resque_JobInterface::class , $ instance );
391
+ $ this ->assertInstanceOf (' Resque_JobInterface ' , $ instance );
392
392
}
393
393
}
394
394
0 commit comments