Reformat to look like this:

```php
$this->urlBuilderFactory
	->shouldReceive('getUrlBuilder')
	->with($url, $params)
	->times(isset($url) ? 1 : 0)
	->andReturn($urlBuilder);
```