for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SRF\Tests\Unit\Formats;
use SMW\Test\QueryPrinterRegistryTestCase;
use SRFValueRank;
/**
* Tests for the SRFValueRank class.
*
* @file
* @since 3.2
* @ingroup SemanticResultFormats
* @ingroup Test
* @group SRF
* @group SMWExtension
* @group ResultPrinters
* @licence GNU GPL v2+
* @author Sebastian Schmid < [email protected] >
*/
class ValueRankTest extends QueryPrinterRegistryTestCase {
* @see QueryPrinterRegistryTestCase::getFormats
* @return array
public function getFormats() {
return [ 'valuerank' ];
}
* @see QueryPrinterRegistryTestCase::getClass
* @return string
public function getClass() {
return 'SRFValueRank';
public function testGetName() {
$instance = new SRFValueRank(
'valuerank'
);
$this->assertInternalType('string', $instance->getName());
$instance->name
getName()