2017 © Pedro Peláez
 

library expose-php

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

image

insperedia/expose-php

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  • Wednesday, April 27, 2016
  • by insperedia
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Expose mocking library

Expose mocking library allows to create mocks, stubs and expose internal methods. Unique feature is dymamic injection of test support code into target class. This eliminate needs to have any aditional code in a class under the test., (*1)

Usage, (*2)

    $mock = new \Insperedia\Expose\Mock('\app\classes\TestClass');
    $mock->listenMethod('internalMethod', 'return false;');

    $mockedTestClass = $mock->createClass();
    $mockedTestClass->externalMethod("someValue");

    $this->assertEquals(1, $mockedTestClass->getCallCount('internalMethod'));

The Versions

27/04 2016

dev-master

9999999-dev

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac

27/04 2016

1.0.6

1.0.6.0

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac

27/04 2016

1.0.5

1.0.5.0

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac

27/04 2016

1.0.4

1.0.4.0

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac

27/04 2016

1.0.3

1.0.3.0

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac

22/04 2016

1.0.2

1.0.2.0

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac

22/04 2016

1.0.1

1.0.1.0

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac

22/04 2016

1.0.0

1.0.0.0

Expose is a mocking library allows to create mocks, stubs and expose internal methods.

  Sources   Download

BSD-3-Clause

tdd mock testing php mocking tac