Coduo\PHPMatcher\Tests\MatcherTest::test_matcher_with_array_value PHP Method

test_matcher_with_array_value() public method

    public function test_matcher_with_array_value()
    {
        $value = array('users' => array(array('id' => 1, 'firstName' => 'Norbert', 'lastName' => 'Orzechowicz', 'enabled' => true), array('id' => 2, 'firstName' => 'Michał', 'lastName' => 'Dąbrowski', 'enabled' => true)), 'readyToUse' => true, 'data' => new \stdClass());
        $expectation = array('users' => array(array('id' => '@integer@', 'firstName' => '@string@', 'lastName' => 'Orzechowicz', 'enabled' => '@boolean@'), array('id' => '@integer@', 'firstName' => '@string@', 'lastName' => 'Dąbrowski', 'enabled' => '@boolean@')), 'readyToUse' => true, 'data' => '@wildcard@');
        $this->assertTrue($this->matcher->match($value, $expectation), $this->matcher->getError());
        $this->assertTrue(PHPMatcher::match($value, $expectation, $error), $error);
    }