Пример #1
0
 /**
  * Tests ParametersTrait getParameters and setParameters methods.
  */
 public function testTraitSetGetParameters()
 {
     $highlight = new Highlight();
     $highlight->setParameters(['_source', ['include' => 'title'], 'content', ['force_source' => true]]);
     $expectedResult = ['_source', ['include' => 'title'], 'content', ['force_source' => true]];
     $this->assertEquals($expectedResult, $highlight->getParameters());
 }