rdfio / RDFIO

RDF triples import, export and PHP SPARQL endpoint for Semantic MediaWiki
http://www.mediawiki.org/wiki/Extension:RDFIO
Other
29 stars 12 forks source link

Test failures #26

Closed samuell closed 8 years ago

samuell commented 8 years ago

It dawned upon me that we do indeed have a bunch of unit tests, so better run them. Some failures (ran in 29dc2b17141954c4f0b2f0185b8988a8e47d12bd):

[vagrant phpunit]$ git rev-parse HEAD
29dc2b17141954c4f0b2f0185b8988a8e47d12bd
[vagrant phpunit]$ sh run_tests.sh 
PHPUnit already present
PHPUnit 3.7.37 by Sebastian Bergmann.

Configuration read from /var/www/html/w/extensions/RDFIO.git/tests/phpunit/suite.rdfio.xml

............FF.......

Time: 1.14 seconds, Memory: 22.50MB

There were 2 failures:

1) RDFIOURIToTitleConverterTest::testConvertWithABunchOfExampleURLs
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'SomeTotallyUnrelatedLabel'
+'label'

/var/www/html/w/extensions/RDFIO.git/tests/phpunit/classes/parsers/RDFIO_URIToWikiTitleConverterTest.php:46
/var/www/html/w/tests/phpunit/MediaWikiTestCase.php:131

2) RDFIOURIToTitleConverterTest::testApplyGlobalSettingForPropertiesToUseAsWikiTitleWorksWithCorrectSettings
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'SomeTotallyUnrelatedLabel'
+'label'

/var/www/html/w/extensions/RDFIO.git/tests/phpunit/classes/parsers/RDFIO_URIToWikiTitleConverterTest.php:64
/var/www/html/w/tests/phpunit/MediaWikiTestCase.php:131

FAILURES!
Tests: 21, Assertions: 33, Failures: 2.
samuell commented 8 years ago

Funnily enough ... when running the test suite with hhvm instead of php, there was one additional error:

There was 1 error:

1) RDFIOARC2ToWikiConverterTest::testConvert
RDFIOARC2ToWikiConverterException: Error in ARC2ToWikiConverter: Unknown type of object (_:arc1aebb2) in triple! (not 'uri' nor 'literal')!

/var/www/html/w/extensions/RDFIO.git/classes/parsers/RDFIO_ARC2ToWikiConverter.php:86
/var/www/html/w/extensions/RDFIO.git/tests/phpunit/classes/parsers/RDFIO_ARC2ToWikiConverterTest.php:27
/var/www/html/w/tests/phpunit/MediaWikiTestCase.php:131