/** * Test that matches() returns true if 2 arrays are strict equal. */ public function testMatches() { $this->assertTrue(Hash::matches($this->expanded, $this->expanded)); $this->assertTrue(Hash::matches(array('foo' => 123, 'bar' => 'baz', 'array' => array()), array('foo' => 123, 'bar' => 'baz', 'array' => array()))); $this->assertFalse(Hash::matches($this->expanded, $this->collapsed)); $this->assertFalse(Hash::matches(array('foo' => '123', 'bar' => 'baz', 'array' => array()), array('foo' => 123, 'bar' => 'baz', 'array' => array()))); }