SerializerFactoryTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Tests\Queryr\Serialization;
4
5
use Queryr\Serialization\SerializerFactory;
6
7
/**
8
 * @covers Queryr\Serialization\SerializerFactory
9
 *
10
 * @licence GNU GPL v2+
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class SerializerFactoryTest extends \PHPUnit_Framework_TestCase {
14
15
	/**
16
	 * @var SerializerFactory
17
	 */
18
	private $factory;
19
20
	public function setUp() {
21
		$this->factory = new SerializerFactory();
22
	}
23
24
	public function testGetSimpleItemSerializer() {
25
		$this->assertInstanceOf(
26
			'Serializers\Serializer',
27
			$this->factory->newSimpleItemSerializer()
28
		);
29
	}
30
31
	public function testGetStableItemSerializer() {
32
		$this->assertInstanceOf(
33
			'Serializers\Serializer',
34
			$this->factory->newStableItemSerializer( [] )
35
		);
36
	}
37
38
}
39