testCanConstructProperties()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Tests\Wikibase\DataFixtures;
4
5
use Wikibase\DataFixtures\Properties\CountryProperty;
6
use Wikibase\DataFixtures\Properties\InstanceOfProperty;
7
use Wikibase\DataFixtures\Properties\PostalCodeProperty;
8
9
/**
10
 * @licence GNU GPL v2+
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class PropertyConstructionTest extends \PHPUnit_Framework_TestCase {
14
15
	public function testCanConstructProperties() {
16
		$this->assertInstanceOf( 'Wikibase\DataModel\Entity\Property', ( new CountryProperty() )->newProperty() );
17
		$this->assertInstanceOf( 'Wikibase\DataModel\Entity\Property', ( new InstanceOfProperty() )->newProperty() );
18
		$this->assertInstanceOf( 'Wikibase\DataModel\Entity\Property', ( new PostalCodeProperty() )->newProperty() );
19
	}
20
21
}
22