Skip to content

nb/code-retreat-skeleton-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code Retreat PHP Skeleton

Installation

First, install Composer and git if you don’t have them, already.

Then clone this repository:

$ git clone https://github.com/nb/code-retreat-skeleton-php.git game-of-life

Then, run:

$ composer install

in the game-of-life directory.

You can confirm it’s working by running:

$ composer run-script test

Writing Tests

This primer uses PHPUnit. The project website has decent documentation about how it works.

The game of life code is short enough so that it’s fine if we write both the code and the tests in the same file.

Running Tests

$ composer run-script test

Starting a New Session

Deleting code is hard on the mind, but not hard on the console. Just run:

$ composer run-script reset

WARNING: This will permanently delete all modifications after the previous commit.

About

Simple unit-testing skeleton for a code retreat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages