diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/EnumTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/EnumTest.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/EnumTest.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/EnumTest.php new file mode 100644 index 00000000..e79fee8d --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/EnumTest.php @@ -0,0 +1,38 @@ +<?php + +namespace SMW\Tests; + +use SMW\Enum; + +/** + * @covers \SMW\Enum + * @group semantic-mediawiki + * + * @license GNU GPL v2+ + * @since 3.0 + * + * @author mwjames + */ +class EnumTest extends \PHPUnit_Framework_TestCase { + + /** + *@dataProvider constProvider + */ + public function testValidate( $const ) { + + $this->assertInternalType( + 'string', + $const + ); + } + + public function constProvider() { + + $provider[] = [ + Enum::OPT_SUSPEND_PURGE + ]; + + return $provider; + } + +} |