8000 merged branch drak/doctrinetest (PR #3531) · symfony/symfony@4bb65c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4bb65c7

Browse files
committed
merged branch drak/doctrinetest (PR #3531)
Commits ------- dee47b1 [DoctrineBridge] Add minimal tests for DBAL session storage driver Discussion ---------- [2.1][DoctrineBridge] Add minimal tests for DBAL session storage driver Bug fix: no Feature addition: yes Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - Todo: - This is intentionally only for the `master` branch because the class is different between 2.0 and master. This test is the minimal but at least will mean any refactoring changes in dependencies get caught.
2 parents c21c3bb + dee47b1 commit 4bb65c7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\HttpFoundation;
13+
14+
use Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionStorage;
15+
16+
/**
17+
* Test class for DbalSessionStorage.
18+
*
19+
* @author Drak <drak@zikula.org>
20+
*/
21+
class DbalSessionStorageTest extends \PHPUnit_Framework_TestCase
22+
{
23+
public function test__Construct()
24+
{
25+
$this->connection = $this->getMock('Doctrine\DBAL\Driver\Connection');
26+
$mock = $this->getMockBuilder('Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionStorage');
27+
$mock->setConstructorArgs(array($this->connection));
28+
$this->driver = $mock->getMock();
29+
}
30+
}

0 commit comments

Comments
 (0)
0