Completed
Pull Request — master (#14)
by Helpful
03:02
created

HybridSessionDatabaseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStore() 0 5 1
1
<?php
2
3
/**
4
 * Tests the {@see HybridSessionStore_Database} class
5
 */
6
class HybridSessionDatabaseTest extends HybridSessionAbstractTest {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
8
	/**
9
	 * @return HybridSessionStore_Database
10
	 */
11
	protected function getStore() {
12
		$store = Injector::inst()->get('HybridSessionStore_Database');
13
		$store->setKey(uniqid());
14
		return $store;
15
	}
16
17
}
18