public function testSerializationShouldConvertEmptyPropertiesArrayToObject() { $feature = new Feature(null, array()); $expected = array('type' => 'Feature', 'geometry' => null, 'properties' => new \stdClass()); $this->assertEquals($expected, $feature->jsonSerialize()); }