Test Utils::getExtension and Utils::getBestContentType
- Always called utilities. We need to make sure they work as expected. Introduce PHPUnit tests. - Due to the use of gobals inside the static methods they become untestable. Remove use of global but that also forces a change if method signature.
parent
5f8c72e0
No related branches found
No related tags found
Showing
- classes/Utils.php 7 additions, 8 deletionsclasses/Utils.php
- classes/modules/serviceModule.php 2 additions, 2 deletionsclasses/modules/serviceModule.php
- classes/modules/sparqlFilterModule.php 1 addition, 1 deletionclasses/modules/sparqlFilterModule.php
- classes/modules/typeModule.php 1 addition, 1 deletionclasses/modules/typeModule.php
- classes/modules/uriModule.php 2 additions, 2 deletionsclasses/modules/uriModule.php
- index.php 1 addition, 1 deletionindex.php
- tests/UtilsTest.php 8 additions, 4 deletionstests/UtilsTest.php
Loading
Please register or sign in to comment