2017 © Pedro Peláez
 

library nunjuck

Special tuned version of nette/tester for your PHP projects

image

ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  • Thursday, August 24, 2017
  • by f3l1x
  • Repository
  • 3 Watchers
  • 3 Stars
  • 28,098 Installations
  • PHP
  • 61 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 17 % Grown

The README.md

, (*1)

, (*2)

, (*3)

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte , (*4)

Usage

To install latest version of ninjify/nunjuck use Composer., (*5)

composer require --dev ninjify/nunjuck

Versions

State Version Branch PHP
dev ^0.5.0 master >= 7.1
stable ^0.4.0 master >= 7.1

Documentation

Environment

use Ninjify\Nunjuck\Environment;

# Configure Nette\Tester
Environment::setupTester();

# Configure timezone (Europe/Prague by default)
Environment::setupTimezone();

# Configure many constants
Environment::setupVariables();

# Fill global variables
Environment::setupGlobalVariables();

# Register robot loader
Environment::setupRobotLoader();
Environment::setupRobotLoader(function($loader){});

TestCases

There are many predefined test cases., (*6)

  • BaseTestCase
  • BaseMockeryTestCase + TMockeryTestCase
  • BaseMockistaTestCase + TMockistaTestCase
  • BaseContainerTestCase + TContainerTestCase

Toolkit

Toolkit is class for handling anonymous tests functions., (*7)

  • Toolkit::setUp(function() { ... }) is called before test function.
  • Toolkit::tearDown(function() { ... }) is after before test function.
  • Toolkit::bind($object) binds new context into test function, you can access $this-> inside.
  • Toolkit::test(function() { ... }) triggers test function.

Notes

Little helper to your tests., (*8)

use Ninjify\Nunjuck\Notes;

Notes::add('My note');

# ['My note']
$notes = Notes::fetch();

Notes::clear();

Development

See how to contribute to this package. This package is currently maintained by these authors., (*9)

, (*10)


Consider to support contributte development team. Also thank you for using this package., (*11)

The Versions

24/08 2017

dev-master

9999999-dev https://github.com/ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

php nette tester

24/08 2017

v0.2

0.2.0.0 https://github.com/ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

php nette tester

20/12 2016

v0.1.4

0.1.4.0 https://github.com/ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

php nette tester

13/12 2016

v0.1.3

0.1.3.0 https://github.com/ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

php nette tester

13/12 2016

v0.1.2

0.1.2.0 https://github.com/ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

php nette tester

13/12 2016

v0.1.1

0.1.1.0 https://github.com/ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

php nette tester

12/12 2016

v0.1

0.1.0.0 https://github.com/ninjify/nunjuck

Special tuned version of nette/tester for your PHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

php nette tester