Skip to content

Commit

Permalink
Add test to check hash consistency across different runtimes (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
bekh6ex authored and thiemowmde committed Mar 23, 2017
1 parent d0d743b commit 47535dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/Values/GlobeCoordinateValueTest.php
Expand Up @@ -172,4 +172,12 @@ public function testSerializeCompatibility() {
$this->assertInstanceOf( $this->getClass(), $globeCoordinate );
}

public function testHashIsConsistentAcrossDifferentRuntimeEnvironments() {
$latLongValue = new LatLongValue( 12.2, 12.2 );

$globeCoordinateValue = new GlobeCoordinateValue( $latLongValue, 0.1, 'does not matter' );

$this->assertEquals( '6cb12c61f8d4dce378b0e079aac2c780', $globeCoordinateValue->getHash() );
}

}

0 comments on commit 47535dd

Please sign in to comment.