2017 © Pedro Peláez
 

library monkery-test-case

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

image

inpsyde/monkery-test-case

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  • Tuesday, April 17, 2018
  • by inpsyde
  • Repository
  • 4 Watchers
  • 3 Stars
  • 1,415 Installations
  • PHP
  • 10 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 12 Versions
  • 21 % Grown

The README.md

Monkery test case

Composes all relevant packages for WP components unit testing (brain/monkey and mockery) and provides test cases for PHPUnit that bootstrap Mockery and BrainMonkey. Monkery is a portmanteau of Mockery and Monkey., (*1)

Installation:, (*2)

composer require --dev inpsyde/monkery-test-case

Writing tests

<?php

use MonkeryTestCase\BrainMonkeyWpTestCase;

class MyTest extends BrainMonkeyWpTestCase {

    public function testAnything() {

        // use \Mockery and \Brain\Monkey here
    }
}

But why?

Working on large projects with several packages that all declare a ...\Tests\MockeryTestCase class which does exactly the same will result in a confusing list of autocomplete suggestions in your IDE. Also, with one central FQCN for the test case class you can use an IDE file template across packages., (*3)

Other Notes

Crafted by Inpsyde

The team at Inpsyde is engineering the Web since 2006., (*4)

Bugs, technical hints or contribute

Please give us feedback, contribute and file technical bugs on GitHub Repo., (*5)

License

Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog., (*6)

The Versions

17/04 2018

dev-master

9999999-dev

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

17/04 2018

5.0.1

5.0.1.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

28/02 2018

5.0.0

5.0.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

28/02 2018

dev-update-mockery-version

dev-update-mockery-version

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

29/06 2017

4.0.0

4.0.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

02/06 2017

3.1.1

3.1.1.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

31/05 2017

3.1.0

3.1.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

17/02 2017

3.0.0

3.0.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

10/02 2017

2.1.0

2.1.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

01/08 2016

2.0.0

2.0.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

29/05 2016

1.1.0

1.1.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires

 

13/05 2016

1.0.0

1.0.0.0

Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

  Sources   Download

MIT

The Requires