/**
* @covers ::getMatchingContexts
*
* @dataProvider providerTestGetMatchingContexts
*/
public function testGetMatchingContexts($contexts,
$requirement,
$expected = NULL
) { if (is_null($expected)) { $expected =
$contexts;
} $this->
assertSame($expected,
$this->contextHandler->
getMatchingContexts($contexts,
$requirement));
} /**
* Provides data for testGetMatchingContexts().
*/
public function providerTestGetMatchingContexts() { $requirement_any =
new ContextDefinition();
$requirement_specific =
new ContextDefinition('string'
);
$requirement_specific->
setConstraints(['Blank' =>
[]]);