Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Test;
- function file_get_contents($file) {
- return 'Foo Bar';
- }
- class MockingAFunctionCall extends \PHPUnit_Framework_TestCase
- {
- public function testIWillCallAMockFunction()
- {
- $this->assertEquals(file_get_contents('fool.txt'), 'Foo Bar');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement