eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\MultipleValuedTest::testSetMatchingConfig PHP Method

testSetMatchingConfig() public method

public testSetMatchingConfig ( $matchingConfig )
    public function testSetMatchingConfig($matchingConfig)
    {
        $matcher = $this->getMultipleValuedMatcherMock();
        $matcher->setMatchingConfig($matchingConfig);
        $values = $matcher->getValues();
        $this->assertInternalType('array', $values);
        $matchingConfig = is_array($matchingConfig) ? $matchingConfig : array($matchingConfig);
        foreach ($matchingConfig as $val) {
            $this->assertContains($val, $values);
        }
    }