/** * @test */ public function dimensionsHashIsOrderIndependent() { $nodeData = new NodeData('/foo/bar', $this->mockWorkspace, null, array('c' => array('c1', 'c2'), 'a' => array('a1'))); $dimensionsHash = $nodeData->getDimensionsHash(); $this->assertSame('955c716a191a0957f205ea9376600e72', $dimensionsHash); $nodeData = new NodeData('/foo/bar', $this->mockWorkspace, null, array('a' => array('a1'), 'c' => array('c2', 'c1'))); $dimensionsHash = $nodeData->getDimensionsHash(); $this->assertSame('955c716a191a0957f205ea9376600e72', $dimensionsHash); }