Merge "maintenance: Document secondary purpose of --server"
[lhc/web/wiklou.git] / tests / phpunit / includes / jobqueue / JobQueueMemoryTest.php
index edba75c..bf8603d 100644 (file)
@@ -5,10 +5,10 @@
  *
  * @group JobQueue
  *
- * @licence GNU GPL v2+
+ * @license GNU GPL v2+
  * @author Thiemo Kreuz
  */
-class JobQueueMemoryTest extends PHPUnit_Framework_TestCase {
+class JobQueueMemoryTest extends PHPUnit\Framework\TestCase {
 
        use MediaWikiCoversValidator;
 
@@ -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() );