I was also thinking about checking if the parameter passed to <code>$wgOut->addStyle()</code> or <code>$wgOut->addScript()</code> contains <code>$asset</code>. But I don't know if it's possible in PHPUnit, though.