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
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at environment/MockEnvironment.php
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