Ejemplo n.º 1
0
 public function testTransformedResultDefaultsToNull()
 {
     $result = new Result(array());
     $hybridResult = new HybridResult($result);
     $this->assertSame($result, $hybridResult->getResult());
     $this->assertNull($hybridResult->getTransformed());
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param HybridResult $result
  */
 public function __construct(HybridResult $result)
 {
     $this->elasticaResult = $result->getResult();
     $this->transformedResult = $result->getTransformed();
 }