hi divyanshi,

your question is not clear to me yet. what would you like to know about the php 
files in the test directory?

taking a look at https://bugzilla.wikimedia.org/show_bug.cgi?id=42906 and the 
/core/tests/phpunit/structure/StructureTest.php file, the suggestion is to 
substitute the array provided to, $testClassRegex =, with a dataProvider see 
https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers.
 the provider method would return an array listing out all of the filenames of 
the php files within the /core/tests/phpunit/ directory. here is one possible 
way of getting those filenames, http://php.net/manual/en/function.scandir.php, 
but i haven’t had a chance to look closely at the test to see if this would be 
the best way to achieve what's needed. in any case, i believe this is the 
general idea antoine is getting at.

with kind regards,
dan

On Oct 9, 2014, at 19:06 , Divyanshi Kathuria <[email protected]> 
wrote:

> I am working on bug 42906. For this I want to know about the php files in
> the test directory.
> 
> Divyanshi Kathuria
> divyanshikathuria27.wordpress.com
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to