diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/dataitems/DI_NumberTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/dataitems/DI_NumberTest.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/dataitems/DI_NumberTest.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/dataitems/DI_NumberTest.php new file mode 100644 index 00000000..807414c3 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/dataitems/DI_NumberTest.php @@ -0,0 +1,44 @@ +<?php + +namespace SMW\Tests; + +/** + * @covers SMWDINumber + * @covers SMWDataItem + * + * @group SMW + * @group SMWExtension + * @group SMWDataItems + * @group SMWDINumberTest + * + * @author Nischay Nahata + * @author Jeroen De Dauw < jeroendedauw@gmail.com > + */ +class SMWDINumberTest extends DataItemTest { + + /** + * @see DataItemTest::getClass + * + * @since 1.8 + * + * @return string + */ + public function getClass() { + return '\SMWDINumber'; + } + + /** + * @see DataItemTest::constructorProvider + * + * @since 1.8 + * + * @return array + */ + public function constructorProvider() { + return [ + [ 0 ], + [ 243.35353 ], + ]; + } + +} |