From dee47b11a0a0d398e80dee2f75ef2872d9619466 Mon Sep 17 00:00:00 2001 From: Drak Date: Thu, 8 Mar 2012 16:20:43 +0545 Subject: [PATCH] [DoctrineBridge] Add minimal tests for DBAL session storage driver --- .../HttpFoundation/DbalSessionStorageTest.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/Symfony/Tests/Bridge/Doctrine/HttpFoundation/DbalSessionStorageTest.php diff --git a/tests/Symfony/Tests/Bridge/Doctrine/HttpFoundation/DbalSessionStorageTest.php b/tests/Symfony/Tests/Bridge/Doctrine/HttpFoundation/DbalSessionStorageTest.php new file mode 100644 index 0000000000000..428f065c1a2c5 --- /dev/null +++ b/tests/Symfony/Tests/Bridge/Doctrine/HttpFoundation/DbalSessionStorageTest.php @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Bridge\Doctrine\HttpFoundation; + +use Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionStorage; + +/** + * Test class for DbalSessionStorage. + * + * @author Drak + */ +class DbalSessionStorageTest extends \PHPUnit_Framework_TestCase +{ + public function test__Construct() + { + $this->connection = $this->getMock('Doctrine\DBAL\Driver\Connection'); + $mock = $this->getMockBuilder('Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionStorage'); + $mock->setConstructorArgs(array($this->connection)); + $this->driver = $mock->getMock(); + } +}