Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b36d0c

Browse files
author
Drak
committed
[DoctrineBridge][HttpFoundation] Refactored tests.
1 parent39526df commit7b36d0c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

‎tests/Symfony/Tests/Bridge/Doctrine/HttpFoundation/DbalSessionStorageTest.php‎renamed to ‎tests/Symfony/Tests/Bridge/Doctrine/HttpFoundation/DbalSessionHandlerTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111

1212
namespaceSymfony\Bridge\Doctrine\HttpFoundation;
1313

14-
useSymfony\Bridge\Doctrine\HttpFoundation\DbalSessionStorage;
14+
useSymfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandler;
1515

1616
/**
1717
* Test class for DbalSessionStorage.
1818
*
1919
* @author Drak <drak@zikula.org>
2020
*/
21-
classDbalSessionStorageTestextends \PHPUnit_Framework_TestCase
21+
classDbalSessionHandlerTestextends \PHPUnit_Framework_TestCase
2222
{
2323
publicfunctiontest__Construct()
2424
{
2525
$this->connection =$this->getMock('Doctrine\DBAL\Driver\Connection');
26-
$mock =$this->getMockBuilder('Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionStorage');
26+
$mock =$this->getMockBuilder('Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandler');
2727
$mock->setConstructorArgs(array($this->connection));
2828
$this->driver =$mock->getMock();
2929
}

‎tests/Symfony/Tests/Component/HttpFoundation/Session/Storage/PdoSessionStorageTest.php‎renamed to ‎tests/Symfony/Tests/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandlerTest.php‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespaceSymfony\Tests\Component\HttpFoundation\Session\Storage;
12+
namespaceSymfony\Tests\Component\HttpFoundation\Session\Storage\Handler;
1313

14-
useSymfony\Component\HttpFoundation\Session\Storage\PdoSessionStorage;
14+
useSymfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
1515

16-
classPdoSessionStorageTestextends \PHPUnit_Framework_TestCase
16+
classPdoSessionHandlerTestextends \PHPUnit_Framework_TestCase
1717
{
1818
private$pdo;
1919

@@ -26,16 +26,16 @@ protected function setUp()
2626

2727
publicfunctiontestMultipleInstances()
2828
{
29-
$storage1 =newPdoSessionStorage($this->pdo,array('db_table' =>'sessions'),array());
29+
$storage1 =newPdoSessionHandler($this->pdo,array('db_table' =>'sessions'),array());
3030
$storage1->write('foo','bar');
3131

32-
$storage2 =newPdoSessionStorage($this->pdo,array('db_table' =>'sessions'),array());
32+
$storage2 =newPdoSessionHandler($this->pdo,array('db_table' =>'sessions'),array());
3333
$this->assertEquals('bar',$storage2->read('foo'),'values persist between instances');
3434
}
3535

3636
publicfunctiontestSessionDestroy()
3737
{
38-
$storage =newPdoSessionStorage($this->pdo,array('db_table' =>'sessions'),array());
38+
$storage =newPdoSessionHandler($this->pdo,array('db_table' =>'sessions'),array());
3939
$storage->write('foo','bar');
4040
$this->assertEquals(1,count($this->pdo->query('SELECT * FROM sessions')->fetchAll()));
4141

@@ -46,7 +46,7 @@ public function testSessionDestroy()
4646

4747
publicfunctiontestSessionGC()
4848
{
49-
$storage =newPdoSessionStorage($this->pdo,array('db_table' =>'sessions'),array());
49+
$storage =newPdoSessionHandler($this->pdo,array('db_table' =>'sessions'),array());
5050

5151
$storage->write('foo','bar');
5252
$storage->write('baz','bar');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp