X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Fdbal%2Ftests%2FDoctrine%2FTests%2FDBAL%2FEvents%2FOracleSessionInitTest.php;fp=vendor%2Fdoctrine%2Fdbal%2Ftests%2FDoctrine%2FTests%2FDBAL%2FEvents%2FOracleSessionInitTest.php;h=847ed6b155f5274e9eb8fff9438464aef94db72e;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Events/OracleSessionInitTest.php b/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Events/OracleSessionInitTest.php new file mode 100644 index 0000000..847ed6b --- /dev/null +++ b/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Events/OracleSessionInitTest.php @@ -0,0 +1,33 @@ +getMock('Doctrine\DBAL\Connection', array(), array(), '', false); + $connectionMock->expects($this->once()) + ->method('executeUpdate') + ->with($this->isType('string')); + + $eventArgs = new ConnectionEventArgs($connectionMock); + + + $listener = new OracleSessionInit(); + $listener->postConnect($eventArgs); + } + + public function testGetSubscribedEvents() + { + $listener = new OracleSessionInit(); + $this->assertEquals(array(Events::postConnect), $listener->getSubscribedEvents()); + } +} \ No newline at end of file