Difference between revisions of "Testing"

From Freephile Wiki
Jump to navigation Jump to search
m
Line 9: Line 9:
 
==Links==
 
==Links==
  
# <nowiki>https://github.com/wikimedia/mediawiki-tools-phan</nowiki>
+
# https://github.com/wikimedia/mediawiki-tools-phan
# <nowiki>https://github.com/phan/phan</nowiki>
+
# https://github.com/phan/phan
# <nowiki>https://www.mediawiki.org/wiki/Continuous_integration/Entry_points</nowiki>
+
# https://www.mediawiki.org/wiki/Continuous_integration/Entry_points
# <nowiki>https://www.mediawiki.org/wiki/Continuous_integration/Phan</nowiki>
+
# https://www.mediawiki.org/wiki/Continuous_integration/Phan
# <nowiki>https://www.mediawiki.org/wiki/Best_practices_for_extensions#File_structure</nowiki>
+
# https://www.mediawiki.org/wiki/Best_practices_for_extensions#File_structure
# <nowiki>https://github.com/nikic/php-ast</nowiki> <br />
+
# https://github.com/nikic/php-ast
  
 
==Static Analysis of MediaWiki==
 
==Static Analysis of MediaWiki==

Revision as of 00:52, 16 February 2024

Testing is software development.

Software development is writing code. Testing makes sure the code actually works, so in a nutshell: Testing is software development :-)

Phan is a static analyzer for PHP. Phan project on GitHub It will help you write better PHP7 code. You'll need the Abstract Syntax Tree generated by PHP. You can read a tutorial for how to get Phan working in your project

The MediaWiki project uses Phan. See the article Continuous_integration/Phan

Links[edit | edit source]

  1. https://github.com/wikimedia/mediawiki-tools-phan
  2. https://github.com/phan/phan
  3. https://www.mediawiki.org/wiki/Continuous_integration/Entry_points
  4. https://www.mediawiki.org/wiki/Continuous_integration/Phan
  5. https://www.mediawiki.org/wiki/Best_practices_for_extensions#File_structure
  6. https://github.com/nikic/php-ast

Static Analysis of MediaWiki[edit | edit source]

See https://doc.wikimedia.org/mediawiki-core/master/phpmetrics/complexity.html