for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SMW\Scribunto\Tests;
/**
* @covers \SMW\Scribunto\ScribuntoLuaLibrary
* @group semantic-scribunto
*
* @license GNU GPL v2+
* @since 1.0
* @author mwjames
*/
class ScribuntoLuaLibraryPropertyTest extends ScribuntoLuaEngineTestBase {
* Lua test module
* @var string
protected static $moduleName = 'SMW\Scribunto\Tests\ScribuntoLuaLibraryPropertyTest';
* ScribuntoLuaEngineTestBase::getTestModules
public function getTestModules() {
return parent::getTestModules() + [
'SMW\Scribunto\Tests\ScribuntoLuaLibraryPropertyTest' => __DIR__ . '/' . 'mw.smw.property.tests.lua',
];
}
* Tests method getPropertyType
* @return void
public function testGetPropertyType() {
$this->assertEmpty(
$this->getScribuntoLuaLibrary()->getPropertyType( '' )[0]
);
$this->assertEquals(
'_dat',
$this->getScribuntoLuaLibrary()->getPropertyType( 'Modification date' )[0]
'_wpg',
$this->getScribuntoLuaLibrary()->getPropertyType( 'Foo' )[0]