Exemple #1
0
 /**
  * @group Slow
  * @slowExecutionTime 0.09983 ms
  * @covers Wikia\Search\Result::toArray
  */
 public function testToArray()
 {
     $fields = $this->defaultFields;
     $fields['foo'] = 'bar';
     $result = new Result($fields);
     $array = $result->toArray(array('wid', 'foo' => 'roseanne'));
     $this->assertArrayHasKey('wid', $array);
     $this->assertEquals(123, $array['wid']);
     $this->assertEquals('bar', $array['roseanne']);
 }