2017 © Pedro Peláez
 

library phpunit-test-case

A PHPUnit test case class with additional functionality.

image

herrera-io/phpunit-test-case

A PHPUnit test case class with additional functionality.

  • Monday, March 18, 2013
  • by kherge
  • Repository
  • 0 Watchers
  • 1 Stars
  • 4,585 Installations
  • PHP
  • 25 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

PHPUnit TestCase

Build Status, (*1)

A PHPUnit test case class and trait with additional functionality., (*2)

Summary

The TestCase class and Extras trait provide additional methods for performing basic, repetitive tasks such as:, (*3)

  • creating and deleting temporary files and directories
  • calling protected and private methods
  • retrieving and setting protected and private properties

NOTE Both TestCase and Extras are identical, except the former being a class and the latter being a trait., (*4)

Installation

Add it to your list of Composer dependencies:, (*5)

$ composer require herrera-io/phpunit-test-case=1.*

Usage

The TestCase class

<?php

class MyTestCase extends Herrera\PHPUnit\TestCase
{
    // my tests
}

The Extras trait

<?php

class MyTestCase extends My\Own\Custom\TestCase
{
    use Herrera\PHPUnit\Extras;

    // my tests
}

NOTE If your test class provides its own tearDown() method, make sure to call the class's or trait's tearDown() method as well. TestCase and Extras uses the tear down process to clean up temporary files and directories., (*6)

The Versions

18/03 2013

dev-master

9999999-dev http://herrera-io.github.com/php-phpunit-testcase

A PHPUnit test case class with additional functionality.

  Sources   Download

MIT

The Requires

 

The Development Requires

test phpunit

18/03 2013

1.2.1

1.2.1.0 http://herrera-io.github.com/php-phpunit-testcase

A PHPUnit test case class with additional functionality.

  Sources   Download

MIT

The Requires

 

The Development Requires

test phpunit

18/03 2013

1.2.0

1.2.0.0 http://herrera-io.github.com/php-phpunit-testcase

A PHPUnit test case class with additional functionality.

  Sources   Download

MIT

The Requires

 

The Development Requires

test phpunit

20/02 2013

1.1.0

1.1.0.0 http://herrera-io.github.com/php-phpunit-testcase

A PHPUnit test case class with additional functionality.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

test phpunit

19/01 2013

1.0.0

1.0.0.0

A PHPUnit test case class with additional functionality.

  Sources   Download

MIT

The Development Requires