Digital Craftsman
  • Search
Sign in Subscribe

phpuni

A collection of 1 post
php

PHPUnit mocks with callbacks

PHPUnit mocks are really easy and usefull. With them you're able to change the behaviour and return values of which ever class you want to test. $awesomeUrl = "http://blog.liplex.de"; /** @var UniqueHelper|\PHPUnit_Framework_MockObject_MockObject $uniqueHelper */ $uniqueHelper = $this->getMockObject( 'Liplex\Helper\UniqueHelper&
19 Sep 2014 1 min read
Page 1 of 1
Digital Craftsman © 2025
  • Datenschutz
  • Impressum
Powered by Ghost