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

HybridSessionDatabaseTest::getStore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 5
rs 9.4285
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