Completed
Push — newparam ( 72433c...c5fad3 )
by Jeroen De
01:21
created

testEmptyJsonIsNotValidContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Maps\Tests\Unit\MediaWiki;
6
7
use Maps\MediaWiki\Content\GeoJsonContent;
8
use PHPUnit\Framework\TestCase;
9
10
class GeoJsonContentTest extends TestCase {
11
12
	public function testEmptyJsonIsNotValidContent() {
13
		$this->assertFalse( ( new GeoJsonContent( '{}' ) )->isValid() );
14
	}
15
16
	public function testMinimalGeoJsonIsValid() {
17
		$this->assertTrue( ( new GeoJsonContent(
18
			'{"type": "FeatureCollection", "features": []}'
19
		) )->isValid() );
20
	}
21
22
}
23