SignupFactoryTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testCanConstruct() 0 7 1
A testCanConstructFormPrinterHandler() 0 9 1
A testCanConstructUserAccountDataChecker() 0 9 1
1
<?php
2
3
namespace SES\Tests;
4
5
use SES\SignupFactory;
6
7
/**
8
 * @covers \SES\SignupFactory
9
 *
10
 * @group semantic-signup
11
 *
12
 * @license GNU GPL v2+
13
 * @since 1.1
14
 *
15
 * @author mwjames
16
 */
17
class SignupFactoryTest extends \PHPUnit_Framework_TestCase {
18
19
	public function testCanConstruct() {
20
21
		$this->assertInstanceOf(
22
			'\SES\SignupFactory',
23
			new SignupFactory()
24
		);
25
	}
26
27
	public function testCanConstructFormPrinterHandler() {
28
29
		$instance = new SignupFactory();
30
31
		$this->assertInstanceOf(
32
			'\SES\FormPrinterHandler',
33
			$instance->newFormPrinterHandler()
34
		);
35
	}
36
37
	public function testCanConstructUserAccountDataChecker() {
38
39
		$instance = new SignupFactory();
40
41
		$this->assertInstanceOf(
42
			'\SES\UserAccountDataChecker',
43
			$instance->newUserAccountDataChecker()
44
		);
45
	}
46
47
}
48