This repository has been archived by the owner on Nov 26, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from mbabker/sessionTestNS
Namespace Session tests
- Loading branch information
Showing
9 changed files
with
216 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE | ||
*/ | ||
|
||
namespace Joomla\Session\Tests\Storage; | ||
|
||
use Joomla\Session\Storage\Memcached as StorageMemcached; | ||
use Joomla\Session\Storage; | ||
|
||
/** | ||
* Test class for Joomla\Session\Storage\Memcached. | ||
* | ||
* @since 1.0 | ||
*/ | ||
class MemcachedTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* Test object | ||
* | ||
* @var StorageMemcached | ||
* @since 1.0 | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
* | ||
* @return void | ||
* | ||
* @since 1.0 | ||
*/ | ||
protected function setUp() | ||
{ | ||
parent::setUp(); | ||
|
||
// Skip these tests if Memcache isn't available. | ||
if (!StorageMemcached::isSupported()) | ||
{ | ||
$this->markTestSkipped('Memcached storage is not enabled on this system.'); | ||
} | ||
|
||
$this->object = Storage::getInstance('Memcached'); | ||
} | ||
|
||
/** | ||
* Test... | ||
* | ||
* @todo Implement testOpen(). | ||
* | ||
* @return void | ||
*/ | ||
public function testOpen() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete('This test has not been implemented yet.'); | ||
} | ||
|
||
/** | ||
* Test... | ||
* | ||
* @todo Implement testClose(). | ||
* | ||
* @return void | ||
*/ | ||
public function testClose() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete('This test has not been implemented yet.'); | ||
} | ||
|
||
/** | ||
* Test... | ||
* | ||
* @todo Implement testRead(). | ||
* | ||
* @return void | ||
*/ | ||
public function testRead() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete('This test has not been implemented yet.'); | ||
} | ||
|
||
/** | ||
* Test... | ||
* | ||
* @todo Implement testWrite(). | ||
* | ||
* @return void | ||
*/ | ||
public function testWrite() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete('This test has not been implemented yet.'); | ||
} | ||
|
||
/** | ||
* Test... | ||
* | ||
* @todo Implement testDestroy(). | ||
* | ||
* @return void | ||
*/ | ||
public function testDestroy() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete('This test has not been implemented yet.'); | ||
} | ||
|
||
/** | ||
* Test... | ||
* | ||
* @todo Implement testGc(). | ||
* | ||
* @return void | ||
*/ | ||
public function testGc() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete('This test has not been implemented yet.'); | ||
} | ||
|
||
/** | ||
* Test... | ||
* | ||
* @todo Implement testIsSupported(). | ||
* | ||
* @return void | ||
*/ | ||
public function testIsSupported() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete('This test has not been implemented yet.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.