Download the PHP package phphooligans/tdd-workshop without Composer

On this page you can find all versions of the php package phphooligans/tdd-workshop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tdd-workshop

🏫 PhpHooligans Workshop - Unit-Testing - The Basics 🎓

Introduction

This workshop is a first introductory course to isolated automated checks (also known as unit-testing). It is geared towards explaining how to create and run automated checks on a PHP code-base with PhpUnit.

After a short theoretical introduction, participants will gain the knowledge and ability to create unit-tests, and run them on a local or remote environment (such as build/CI server).

Overview

The workshop is structured as follows:

Preparation:

Theory

A brief introduction on what automated checks are and how they work

  1. What is an automated check?
  2. What is an automated check not? (i.e. exploratory)
  3. How do automated checks work?
  4. Various benefits
  5. A word on xUnit
  6. Testing old Code vs. Checking new Code

Practice

  1. Installing PHPUnit
    • Globally
    • Per project
    • Using different versions (using phpunit.phar)
  2. Pick a project to use for testing (or use the WordWrapper example from PHPHOOLIGANS/workshop-unit-testing)
  3. Basic Configuration
    • Commandline options
      • --configuration
    • Local configuration file (phpunit.xml) -- <testsuites>
    • Project configuration file (phpunit.xml.dist)
  4. Where do the tests go? (Directory structure, Namespaces and Autoloading)
  5. Creating an empty automated check
    • Pick (or create) a class to test
    • Creating a Test class
    • Creating an automated check
  6. Running automated checks
  7. Creating an actual automated check
  8. Using Asserts to validate assumptions

Follow-up Intermediate workshops

Once the basics are under control, developers might want to learn more features that PHPUnit offers. There is a workshop aimed at intermediate knowledge.

  1. Configuring the IDE or text-editor. Supported options are: a. PhpStorm b. Atom c. Vim d. Sublime e. Other editor (an external tools is used)
  2. Providing data to tests using DataProviders
  3. Using test doubles
  4. Setting up test dependencies
  5. More configuration
    • Strictness
      • forceCoversAnnotation="true"
    • <logging>
      • TestDox
      • Coverage Text
      • Coverage Clover XML
    • <filter>
  6. Code Coverage
    • Adding annotation @coversDefaultClass and @covers

Follow-up Advanced workshops

There more advanced or topic-specific workshops beyond the knowledge the intermediate workshop offers:

/EOF/


All versions of tdd-workshop with dependencies

PHP Build Version
Package Version
Requires phpunit/phpunit Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phphooligans/tdd-workshop contains the following files

Loading the files please wait ....