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

HybridSessionStoreTest::getStore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 6
Ratio 100 %
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 6
loc 6
rs 9.4285
1
<?php
2
3
/**
4
 * Tests {@see HybridSessionStore} class
5
 */
6
class HybridSessionStoreTest 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_Cookie
10
	 */
11 View Code Duplication
	protected function getStore() {
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
12
		$store = Injector::inst()->get('HybridSessionStore');
13
		$store->setKey(uniqid());
14
		$store->open(getTempFolder().'/'.__CLASS__, 'SESSIONCOOKIE');
15
		return $store;
16
	}
17
}