2017 © Pedro Peláez
 

library phpunit-functions

PHPUnit Functions.php auto loader

image

ngyuki/phpunit-functions

PHPUnit Functions.php auto loader

  • Friday, August 4, 2017
  • by ngyuki
  • Repository
  • 1 Watchers
  • 0 Stars
  • 154 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 29 % Grown

The README.md

PHPUnit Functions.php auto loader

Build Status, (*1)

PHPUnit contains Functions.php for shorthand of assertion., (*2)

// normally
$this->assertThat($actual, $this->equalTo($expect));

// shorthand
assertThat($actual, equalTo($expect));

This is very useful, but you need to explicitly load Functions.php., (*3)

// I need to know location of Functions.php
require_once __DIR__ . '/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php';

This is more difficult when running phpunit with phar., (*4)

// I need to know phar filename
require_once 'phar://phpunit-6.2.phar/phpunit/Framework/Assert/Functions.php';

If you add ngyuki/phpunit-functions to your project, Functions.php will be loaded automatically., (*5)

composer require --dev ngyuki/phpunit-functions

Enjoy Testing!, (*6)

The Versions

04/08 2017

dev-master

9999999-dev https://github.com/ngyuki/phpunit-functions

PHPUnit Functions.php auto loader

  Sources   Download

MIT

by Toshiyuki Goto

phpunit testing

27/07 2017

v1.0

1.0.0.0 https://github.com/ngyuki/phpunit-functions

PHPUnit Functions.php auto loader

  Sources   Download

MIT

by Toshiyuki Goto

phpunit testing