Current File : /home/jvzmxxx/wiki1/extensions/Maps/tests/Integration/parserhooks/GeocodeTest.php
<?php

namespace Maps\Test;

use DataValues\Geo\Values\LatLongValue;
use Maps\Elements\Location;

/**
 * @covers MapsGeocode
 *
 * @licence GNU GPL v2+
 * @author Jeroen De Dauw < jeroendedauw@gmail.com >
 */
class GeocodeTest extends ParserHookTest {

	/**
	 * @see ParserHookTest::getInstance
	 * @since 2.0
	 * @return \ParserHook
	 */
	protected function getInstance() {
		return new \MapsGeocode();
	}

	/**
	 * @see ParserHookTest::parametersProvider
	 * @since 2.0
	 * @return array
	 */
	public function parametersProvider() {
		$paramLists = [];

		$paramLists[] = [ 'location' => 'new york city' ];

		return $this->arrayWrap( $paramLists );
	}

	/**
	 * @see ParserHookTest::processingProvider
	 * @since 3.0
	 * @return array
	 */
	public function processingProvider() {
		$argLists = [];

		$argLists[] = [
			[
				'location' => '4,2',
				'allowcoordinates' => 'yes',
			],
			[
				'location' => '4,2',
				'allowcoordinates' => true,
			]
		];

		return $argLists;
	}

}