Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
SMW\Scribunto\Tests\LuaAskResultProcessorTest Class Reference
Collaboration diagram for SMW\Scribunto\Tests\LuaAskResultProcessorTest:
Collaboration graph
[legend]

Public Member Functions

 testCanConstruct ()
 
 testGetProcessedResult ()
 
 testGetDataFromQueryResultRow ()
 
 testGetKeyFromPrintRequest ()
 
 testGetDataFromResultArray ()
 
 testGetValueFromDataValue ($class, $type, $expects)
 
 testExtractLuaDataFromDVData ($expects, $input)
 
 testGetNumericIndex ()
 
 dataProvidergetValueFromDataValueTest ()
 
 dataProviderExtractLuaDataFromDVData ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

semantic-scribunto

GNU GPL v2+

Since
1.0
Author
Tobias Oetterer

Member Function Documentation

SMW\Scribunto\Tests\LuaAskResultProcessorTest::dataProviderExtractLuaDataFromDVData ( )

Data provider for {

See also
testExtractLuaDataFromDVData}
testExtractLuaDataFromDVData
Returns
array
SMW\Scribunto\Tests\LuaAskResultProcessorTest::dataProvidergetValueFromDataValueTest ( )

Data provider for {

See also
testgetValueFromDataValue}
testgetValueFromDataValue
Returns
array
SMW\Scribunto\Tests\LuaAskResultProcessorTest::setUp ( )
protected

Set-up method prepares a mock {

See also
}
SMW\Scribunto\Tests\LuaAskResultProcessorTest::testCanConstruct ( )

Test, if the constructor works

See also
::__construct
Returns
void
SMW\Scribunto\Tests\LuaAskResultProcessorTest::testExtractLuaDataFromDVData (   $expects,
  $input 
)

Tests the conversion of a list of result values into a value, usable in lua. Uses data provider {

See also
dataProviderExtractLuaDataFromDVData} dataProviderExtractLuaDataFromDVData
Parameters
mixed$expectsexpected return value
array$inputinput for method
See also
::extractLuaDataFromDVData
Returns
void
SMW\Scribunto\Tests\LuaAskResultProcessorTest::testGetDataFromQueryResultRow ( )

Tests the data extraction from a result row

See also
::getDataFromQueryResultRow
Returns
void
SMW\Scribunto\Tests\LuaAskResultProcessorTest::testGetDataFromResultArray ( )

Tests the extraction of data from a SMWResultArray

See also
::getDataFromResultArray
Returns
void

PhpParamsInspection

SMW\Scribunto\Tests\LuaAskResultProcessorTest::testGetKeyFromPrintRequest ( )

Tests the retrieval of a key (string label or numeric index) from a print request

See also
::getKeyFromPrintRequest
Returns
void

PhpParamsInspection

PhpParamsInspection

PhpParamsInspection

PhpParamsInspection

SMW\Scribunto\Tests\LuaAskResultProcessorTest::testGetNumericIndex ( )

Tests the generation of a numeric index key

See also
::getNumericIndex
Returns
void
SMW\Scribunto\Tests\LuaAskResultProcessorTest::testGetProcessedResult ( )

Tests the conversion of a {

See also
} in a lua table
::getProcessedResult
Returns
void
SMW\Scribunto\Tests\LuaAskResultProcessorTest::testGetValueFromDataValue (   $class,
  $type,
  $expects 
)

Tests data value extraction. Uses data provider {

See also
dataProvidergetValueFromDataValueTest} dataProvidergetValueFromDataValueTest
Parameters
string$classname of data value class
string$typedata value type
string$expectsreturn value type
See also
::getValueFromDataValue
Returns
void

PhpParamsInspection


The documentation for this class was generated from the following file: