https://github.com/senseexception/mock-mock-mock
A collection of different Mock framework examples
https://github.com/senseexception/mock-mock-mock
Last synced: 10 months ago
JSON representation
A collection of different Mock framework examples
- Host: GitHub
- URL: https://github.com/senseexception/mock-mock-mock
- Owner: SenseException
- License: mit
- Created: 2015-10-18T19:55:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T21:22:30.000Z (over 5 years ago)
- Last Synced: 2025-07-23T03:33:25.045Z (10 months ago)
- Language: PHP
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mock Mock Mock
Mock Mock Mock is part of a talk about Mocking-Frameworks and provides example code for in the talk mentioned mocks.
The slides to that talk are available [here](https://senseexception.github.io/mock-mock-mock-talk/).
To keep the Frameworks in the foreground of the examples, the micro testing Framework Testify is used.
The following Mocking-Frameworks are handled:
* PHPUnit_MockObject
* Prophecy
* Mockery
* vfsStream
* Phake
* php-mock
* aspect-mock
### Installation
``` bash
git clone git@github.com:SenseException/mock-mock-mock.git
cd mock-mock-mock
composer install
```
Start a webserver to run the tests in browser:
``` bash
php -S localhost:8080 -t src/
```