Skip to content
Snippets Groups Projects
SessionTestCase.php 847 B
Newer Older
  • Learn to ignore specific revisions
  • 
    use CodeIgniter\Session\Handlers\ArrayHandler;
    
    use CodeIgniter\Test\CIUnitTestCase;
    use CodeIgniter\Test\Mock\MockSession;
    
    /**
     * @phpstan-ignore-next-line
     */
    
    class SessionTestCase extends CIUnitTestCase
    {
    
        /**
         * Pre-loads the mock session driver into $this->session.
         *
         * @var string
         */
    
        protected function mockSession(): void
    
            $this->session = new MockSession(new ArrayHandler($config, '0.0.0.0'), $config,);