for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace Maps\Tests\Unit\MediaWiki;
use Maps\MediaWiki\Content\GeoJsonContent;
use PHPUnit\Framework\TestCase;
class GeoJsonContentTest extends TestCase {
public function testEmptyJsonIsNotValidContent() {
$this->assertFalse( ( new GeoJsonContent( '{}' ) )->isValid() );
}
public function testMinimalGeoJsonIsValid() {
$this->assertTrue( ( new GeoJsonContent(
'{"type": "FeatureCollection", "features": []}'
) )->isValid() );