Merge "Add SPARQL client to core"
[lhc/web/wiklou.git] / tests / phpunit / includes / jobqueue / JobQueueMemoryTest.php
index edba75c..d5a267e 100644 (file)
@@ -17,7 +17,7 @@ class JobQueueMemoryTest extends PHPUnit_Framework_TestCase {
         */
        private function newJobQueue() {
                return JobQueue::factory( [
-                       'class' => 'JobQueueMemory',
+                       'class' => JobQueueMemory::class,
                        'wiki' => wfWikiID(),
                        'type' => 'null',
                ] );
@@ -54,7 +54,7 @@ class JobQueueMemoryTest extends PHPUnit_Framework_TestCase {
        public function testJobFromSpecInternal() {
                $queue = $this->newJobQueue();
                $job = $queue->jobFromSpecInternal( $this->newJobSpecification() );
-               $this->assertInstanceOf( 'Job', $job );
+               $this->assertInstanceOf( Job::class, $job );
                $this->assertSame( 'null', $job->getType() );
                $this->assertArrayHasKey( 'customParameter', $job->getParams() );
                $this->assertSame( 'Custom title', $job->getTitle()->getText() );