api/symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.yaml

58 lines
1.8 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: NativeFileSessionHandlerTest
class_comment: '# * Test class for NativeFileSessionHandler.
# *
# * @author Drak <drak@zikula.org>
# *
# * @runTestsInSeparateProcesses
# *
# * @preserveGlobalState disabled'
dependencies:
- name: TestCase
type: class
source: PHPUnit\Framework\TestCase
- name: NativeFileSessionHandler
type: class
source: Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler
- name: NativeSessionStorage
type: class
source: Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage
properties: []
methods:
- name: testConstructSavePath
visibility: public
parameters:
- name: savePath
- name: expectedSavePath
- name: path
comment: "# * Test class for NativeFileSessionHandler.\n# *\n# * @author Drak <drak@zikula.org>\n\
# *\n# * @runTestsInSeparateProcesses\n# *\n# * @preserveGlobalState disabled\n\
# */\n# class NativeFileSessionHandlerTest extends TestCase\n# {\n# public function\
\ testConstruct()\n# {\n# new NativeSessionStorage(['name' => 'TESTING'], new\
\ NativeFileSessionHandler(sys_get_temp_dir()));\n# \n# $this->assertEquals('user',\
\ \\ini_get('session.save_handler'));\n# \n# $this->assertEquals(sys_get_temp_dir(),\
\ \\ini_get('session.save_path'));\n# $this->assertEquals('TESTING', \\ini_get('session.name'));\n\
# }\n# \n# /**\n# * @dataProvider savePathDataProvider"
- name: savePathDataProvider
visibility: public
parameters: []
comment: null
- name: testConstructException
visibility: public
parameters: []
comment: null
- name: testConstructDefault
visibility: public
parameters: []
comment: null
traits:
- PHPUnit\Framework\TestCase
- Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler
- Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage
interfaces: []