Overview

Namespaces

  • phpmock
    • environment
    • functions
    • spy

Classes

  • MockEnvironment
  • SleepEnvironmentBuilder
  • Overview
  • Namespace
  • Class

Class MockEnvironment

Container for several mocks.

phpmock\environment\MockEnvironment implements phpmock\Deactivatable
Namespace: phpmock\environment
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at environment/MockEnvironment.php
Methods summary
public
# __construct( array $mocks = [] )

Sets the mocks for this environment.

Sets the mocks for this environment.

Parameters

$mocks
The mocks for this environment.
public
# addMock( phpmock\Mock $mock )

Adds a mock to this environment.

Adds a mock to this environment.

Parameters

$mock
Mock.
public
# enable( )

Enable all mocks in this environment.

Enable all mocks in this environment.

public
# define( )

Define all mocks in this environment.

Define all mocks in this environment.

See

phpmock\Mock::define()
public
# disable( )

Disable all mocks in this environment.

Disable all mocks in this environment.

Implementation of

phpmock\Deactivatable::disable()
API documentation generated by ApiGen