Skip to content

purrucker/testing-setup

 
 

Repository files navigation

Workshop Testing Setup

Please make sure that you have a working setup of:

  • PHP 5.3 (or newer)
  • PHPUnit 3.7 (or newer)
  • A Git client

Installation

  1. Make sure PHP is installed on your machine. The following link has more information on how to install PHP: http://www.phptherightway.com/#getting_started On a Debian/Ubuntu-based machine installing PHP is as simple as calling apt-get install php5 php5-cli as root user.
  2. Using your Git client, checkout https://github.com/QafooLabs/testing-setup.git to a directory of your choice.
  3. In the checked out directory call php composer.phar install --dev --prefer-dist to install all the dependencies. Composer is a dependency management tool. It will will download the code as zip packages from Github Download servers.

Links

Vagrant setup (optional)

For those who are interested there is a vagrant setup available (optional). Just follow these steps to get up and running with your own Virtual environment.

  • Install Virtualbox and Vagrant
  • From the root of this git repository run vagrant up and wait for the VM to boot and provision
  • Ssh into the VM by running vagrant ssh and switch to the /vagrant directory

Once in the virtual machine you can find all files in /vagrant, this is actually the folder on your machine (the host) you ran the vagrant up command from, mounted into the Virtual machine. All changes made to files inside this directory on your computer will reflect immediately on the Virtual machine. This makes that you can run PHPUnit on the VM through an ssh session while still being able to edit the files on your computer with your favourite editor or IDE.

To test if all is installed correct run phpunit test/ from the /vagrant folder in your VM.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 47.0%
  • Puppet 23.6%
  • Shell 20.8%
  • Ruby 8.6%