testCanConstructFormPrinterHandler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
rs 9.6666
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