Merge "build: Enable karma debug log and use progress reporter"
[lhc/web/wiklou.git] / tests / phpunit / includes / jobqueue / JobQueueMemoryTest.php
1 <?php
2
3 /**
4 * @covers JobQueueMemory
5 *
6 * @group JobQueue
7 *
8 * @licence GNU GPL v2+
9 * @author Thiemo Mättig
10 */
11 class JobQueueMemoryTest extends PHPUnit_Framework_TestCase {
12
13 public function testGetAllQueuedJobs() {
14 $instance = JobQueueMemoryDouble::newInstance( array(
15 'wiki' => null,
16 'type' => null,
17 ) );
18 $actual = $instance->getAllQueuedJobs();
19 $this->assertEquals( new ArrayIterator(), $actual );
20 }
21
22 }
23
24 class JobQueueMemoryDouble extends JobQueueMemory {
25
26 public static function newInstance( array $params ) {
27 return new self( $params );
28 }
29
30 }