elliotchance / elliotchance/concise

Use magic getters for building mocks

Open
#171 0 comments 0 reactions 0 assignees View on GitHub
Component: Mocking Size: 1 (Small)
Dominant language
PHP
Stars
45
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Any property should try and call a method with the same name:

``` php
$this->mock('CustomerEntity')->disableConstuctor()->done();
```

Will work the same as:

``` php
$this->mock('CustomerEntity')->disableConstuctor->done;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.