Fix Closure detection in MediaWikiTestCase
authorMarius Hoch <hoo@online.de>
Fri, 19 May 2017 21:06:58 +0000 (23:06 +0200)
committerMarius Hoch <hoo@online.de>
Fri, 19 May 2017 21:06:58 +0000 (23:06 +0200)
commit91159d39d5ca5dc679be7de43866864b0998cc2e
treec8b3404064e1cadd69aa7bac815c0a0e371921ca
parentf2cacb9af7bd5e83324a0c268759ad4d17333711
Fix Closure detection in MediaWikiTestCase

Sometimes the closure are hidden in arrays, catch this.

The $maxDepth check is just for sanity, I don't think it's
actually needed.

Follows-Up: c2c7452577e

Bug: T111641
Change-Id: Id5e036ce4949b8106873fd938f54c2774d3d6a4a
tests/phpunit/MediaWikiTestCase.php