for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Maps\Test;
use Maps\Elements\Location;
/**
* @covers MapsDisplayMap
*
* @group Maps
* @group ParserHook
* @group DisplayMapTest
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class DisplayMapTest extends ParserHookTest {
* @see ParserHookTest::getInstance
* @since 2.0
* @return \ParserHook
protected function getInstance() {
return new \MapsDisplayMap();
}
* @see ParserHookTest::parametersProvider
* @return array
public function parametersProvider() {
$paramLists = [];
// TODO
$paramLists[] = [ 'coordinates' => '4,2' ];
$paramLists[] = [ 'location' => '4,2' ];
$paramLists[] = [ 'location' => 'new york city' ];
$paramLists[] = [
'service' => 'googlemaps',
'location' => 'new york city',
'zoom' => '10',
'minzoom' => '5',
'maxzoom' => '7',
'autozoom' => 'off',
];
return $this->arrayWrap( $paramLists );
public function testForSomeReasonPhpSegfaultsIfThereIsOneMethodLess() {
$this->assertTrue( (bool)'This is fucking weird' );
* @see ParserHookTest::processingProvider
* @since 3.0
public function processingProvider() {
$argLists = [];
$values = [
'locations' => '4,2',
'width' => '420',
'height' => '420',
'service' => 'openlayers',
$expected = [
'coordinates' => [ Location::newTitledFromLatLon( 4, 2 ) ],
'width' => '420px',
'height' => '420px',
'mappingservice' => 'openlayers',
$argLists[] = [ $values, $expected ];
return $argLists;