2017 © Pedro Peláez
 

library php-session-tester

A little testing tool for PHP session handlers

image

nicktacular/php-session-tester

A little testing tool for PHP session handlers

  • Friday, January 30, 2015
  • by nicktacular
  • Repository
  • 1 Watchers
  • 0 Stars
  • 87 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Session Emulator

This is a little tool that you can use to emulate how PHP uses a session handler. If, for example, you write your own session handler and wish to test it, this tool will help by emulating how PHP's session_*() functions work in a way that you can unit test your session handler., (*1)

Requirements

If you're on PHP ≥ 5.3, then just Composer. If you're running PHP < 5.3, there are no other requirements., (*2)

Installing

If you're using PHP ≥ 5.3, you can install using composer, you can install quite simply like so:, (*3)

composer require nicktacular/php-session-emulator --dev

If you're using PHP < 5.3, you can simple clone this repo and include these in your test bootstrap:, (*4)

include '/path/to/src/n1/Session/Emulator.php';
include '/path/to/src/n1/Session/HttpCookie.php';

How to use

Docs will be done soon., (*5)

The Versions

30/01 2015

dev-master

9999999-dev https://github.com/nicktacular/php-session-emulator

A little testing tool for PHP session handlers

  Sources   Download

MIT

The Development Requires

tdd testing php session unit test