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',
[
'getAwesomeUrl' => [
'call' => 'once',
'return' => $awesomeUrl
]
]
);
You