PropertyConstructionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 9
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCanConstructProperties() 0 5 1
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