ArrayAssertTest::shouldCheckKeysRecursivelyAreEqual PHP Method

shouldCheckKeysRecursivelyAreEqual() public method

    public function shouldCheckKeysRecursivelyAreEqual()
    {
        //given
        $array = array('customer' => array('name' => 'Name', 'phone' => '123456789'), 'other' => array('ids_map' => array('1qaz' => 'qaz', '2wsx' => 'wsx')));
        //then
        $expected = array('customer' => array('name' => 'New name', 'phone' => '45456456'), 'other' => array('ids_map' => array('1qaz' => 'QQQ', '2wsx' => 'EVV')));
        Assert::thatArray($array)->hasEqualKeysRecursively($expected);
    }
ArrayAssertTest