User:WolfgangFahl/Workdocumentation 2015-12-25 WF

tags in properties
The following property assignments do not work as of 2015-12-25: Has_text:: Preformatted Text

Has_text:: Preformatted Text

Properties

 * see Property:Has_text with Has type::Text
 * see Property:Has_improper_value_for

Links

 * https://en.wikipedia.org/wiki/Help:Strip_markers
 * https://www.mediawiki.org/wiki/QINU_fix
 * https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/794
 * https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/68e121a8eb7e6803c6c847dd668b4d0b0cc5ecb3
 * https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/794
 * https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/68e121a8eb7e6803c6c847dd668b4d0b0cc5ecb3

PHP Unit Testing
php composer.phar require phpunit/phpunit:~ 4.6 ./composer.json has been updated > ComposerHookHandler::onPreUpdate Deprecation Notice: The Composer\Package\LinkConstraint\VersionConstraint class is deprecated, use Composer\Semver\Constraint\Constraint instead. in phar:///var/www/html/mediawiki-1.25.3/composer.phar/src/Composer/Package/LinkConstraint/VersionConstraint.php:17 Deprecation Notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar:///var/www/html/mediawiki-1.25.3/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17 Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
 * https://www.semantic-mediawiki.org/wiki/Help:Using_PHPUnit

Problem 1 - Conclusion: don't install phpunit/phpunit 4.8.21 - Conclusion: don't install phpunit/phpunit 4.8.20 - Conclusion: don't install phpunit/phpunit 4.8.19 - Conclusion: don't install phpunit/phpunit 4.8.18 - Conclusion: don't install phpunit/phpunit 4.8.17 - Conclusion: don't install phpunit/phpunit 4.8.16 - Conclusion: don't install phpunit/phpunit 4.8.15 - Conclusion: don't install phpunit/phpunit 4.8.14 - Conclusion: don't install phpunit/phpunit 4.8.13 - Conclusion: don't install phpunit/phpunit 4.8.12 - Conclusion: don't install phpunit/phpunit 4.8.11 - Conclusion: don't install phpunit/phpunit 4.8.10 - Conclusion: don't install phpunit/phpunit 4.8.9 - Conclusion: don't install phpunit/phpunit 4.8.8 - Conclusion: don't install phpunit/phpunit 4.8.7 - Conclusion: don't install phpunit/phpunit 4.8.6 - Conclusion: don't install phpunit/phpunit 4.8.5 - Conclusion: don't install phpunit/phpunit 4.8.4 - Conclusion: don't install phpunit/phpunit 4.8.3 - Conclusion: don't install phpunit/phpunit 4.8.2 - Conclusion: don't install phpunit/phpunit 4.8.1 - Conclusion: don't install phpunit/phpunit 4.8.0 - Conclusion: don't install phpunit/phpunit 4.7.7 - Conclusion: don't install phpunit/phpunit 4.7.6 - Conclusion: don't install phpunit/phpunit 4.7.5 - Conclusion: don't install phpunit/phpunit 4.7.4 - Conclusion: don't install phpunit/phpunit 4.7.3 - Conclusion: don't install phpunit/phpunit 4.7.2 - Conclusion: don't install phpunit/phpunit 4.7.1 - Conclusion: don't install phpunit/phpunit 4.7.0 - Conclusion: don't install phpunit/phpunit 4.6.10 - Conclusion: don't install phpunit/phpunit 4.6.9 - Conclusion: don't install phpunit/phpunit 4.6.8 - Conclusion: don't install phpunit/phpunit 4.6.7 - Conclusion: don't install phpunit/phpunit 4.6.6 - Conclusion: don't install phpunit/phpunit 4.6.5 - Conclusion: don't install phpunit/phpunit 4.6.4 - Conclusion: don't install phpunit/phpunit 4.6.3 - Conclusion: don't install phpunit/phpunit 4.6.2 - Conclusion: don't install phpunit/phpunit 4.6.1 - Conclusion: remove phpunit/phpunit-mock-objects 1.2.3 - Installation request for phpunit/phpunit ~4.6 -> satisfiable by phpunit/phpunit[4.6.0, 4.6.1, 4.6.10, 4.6.2, 4.6.3, 4.6.4, 4.6.5, 4.6.6, 4.6.7, 4.6.8, 4.6.9, 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.7.4, 4.7.5, 4.7.6, 4.7.7, 4.8.0, 4.8.1, 4.8.10, 4.8.11, 4.8.12, 4.8.13, 4.8.14, 4.8.15, 4.8.16, 4.8.17, 4.8.18, 4.8.19, 4.8.2, 4.8.20, 4.8.21, 4.8.3, 4.8.4, 4.8.5, 4.8.6, 4.8.7, 4.8.8, 4.8.9]. - Conclusion: don't install phpunit/phpunit-mock-objects 1.2.3 - phpunit/phpunit 4.6.0 requires phpunit/phpunit-mock-objects ~2.3 -> satisfiable by phpunit/phpunit-mock-objects[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.0, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.1, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.2, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.3, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.4, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.5, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.6, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.7, 1.2.3]. - Can only install one of: phpunit/phpunit-mock-objects[2.3.8, 1.2.3]. - Installation request for phpunit/phpunit-mock-objects == 1.2.3.0 -> satisfiable by phpunit/phpunit-mock-objects[1.2.3].

Installation failed, reverting ./composer.json to its original content. modify composer.json

root@pwiki:/var/www/html/mediawiki/extensions/SemanticMediaWiki# php /var/www/html/mediawiki/composer.phar phpunit > php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist

Semantic MediaWiki: 2.3 (SMWSQLStore3, mysql) MediaWiki:         1.25.3 (MediaWiki vendor autoloader)

PHP Notice: Use of undefined constant CURLE_GOT_NOTHING - assumed 'CURLE_GOT_NOTHING' in /var/www/html/mediawiki-1.25.3/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/BadHttpResponseMapperTest.php on line 112 PHP Notice: Use of undefined constant CURLE_COULDNT_CONNECT - assumed 'CURLE_COULDNT_CONNECT' in /var/www/html/mediawiki-1.25.3/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/BadHttpResponseMapperTest.php on line 113 PHPUnit 4.8.21 by Sebastian Bergmann and contributors.

Runtime:	PHP 5.5.9-1ubuntu4.14 Configuration:	/var/www/html/mediawiki-1.25.3/extensions/SemanticMediaWiki/phpunit.xml.dist

.............................................................  61 / 3234 (  1%) .............................................................  122 / 3234 (  3%) .............................................................  183 / 3234 (  5%) .............................................................  244 / 3234 (  7%) .............................................................  305 / 3234 (  9%) .............................................................  366 / 3234 ( 11%) .............................................................  427 / 3234 ( 13%) .............................................................  488 / 3234 ( 15%) .............................................................  549 / 3234 ( 16%) .............................................................  610 / 3234 ( 18%) .............................................................  671 / 3234 ( 20%) .............................................................  732 / 3234 ( 22%) .............................................................  793 / 3234 ( 24%) .............................................................  854 / 3234 ( 26%) .............................................................  915 / 3234 ( 28%) .............................................................  976 / 3234 ( 30%) ............................................................. 1037 / 3234 ( 32%) ............................................................. 1098 / 3234 ( 33%) ............................................................. 1159 / 3234 ( 35%) ............................................................. 1220 / 3234 ( 37%) ............................................................. 1281 / 3234 ( 39%) ............................................................. 1342 / 3234 ( 41%) ............................................................. 1403 / 3234 ( 43%) ............................................................. 1464 / 3234 ( 45%) ............................................................. 1525 / 3234 ( 47%) ............................................................. 1586 / 3234 ( 49%) ............................................................. 1647 / 3234 ( 50%) ............................................................. 1708 / 3234 ( 52%) ............................................................. 1769 / 3234 ( 54%) ............................................................. 1830 / 3234 ( 56%) ............................................................. 1891 / 3234 ( 58%) ............................................................. 1952 / 3234 ( 60%) ............................................................. 2013 / 3234 ( 62%) ............................................................. 2074 / 3234 ( 64%) ..............EEEEEE......................................... 2135 / 3234 ( 66%) ............................................................. 2196 / 3234 ( 67%) ............................................................. 2257 / 3234 ( 69%) ............................EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 2318 / 3234 ( 71%) EEEEEEEEEEEEEEEEEEEEEEE.PHP Fatal error: Call to undefined function SMW\SPARQLStore\curl_init in /var/www/html/mediawiki-1.25.3/extensions/SemanticMediaWiki/src/SPARQLStore/RepositoryConnectionProvider.php on line 135 Script php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist handling the phpunit event returned with an error

[RuntimeException] Error Output: PHP Notice: Use of undefined constant CURLE_GOT_NOTHING - as    sumed 'CURLE_GOT_NOTHING' in /var/www/html/mediawiki-1.25.3/extensions/Sema nticMediaWiki/tests/phpunit/Unit/SPARQLStore/BadHttpResponseMapperTest.php on line 112 PHP Notice: Use of undefined constant CURLE_COULDNT_CONNECT - assumed 'CUR LE_COULDNT_CONNECT' in /var/www/html/mediawiki-1.25.3/extensions/SemanticMe diaWiki/tests/phpunit/Unit/SPARQLStore/BadHttpResponseMapperTest.php on lin e 113 PHP Fatal error: Call to undefined function SMW\SPARQLStore\curl_init in     /var/www/html/mediawiki-1.25.3/extensions/SemanticMediaWiki/src/SPARQLStor e/RepositoryConnectionProvider.php on line 135

phpunit [--dev] [--no-dev] [--] [ ]...

Single Test
https://github.com/SemanticMediaWiki/SemanticMediaWiki

SetParserFunction
see https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/includes/parserhooks/SetParserFunction.php

Ontology "IDE"

 * http://wikimedia.7.x6.nabble.com/SMW-Ontologies-td5042397.html
 * http://wikimedia.7.x6.nabble.com/SMW-Ontologies-td5042397.html

Category:Workdocumentation