assertInstanceOf( TableResultPrinter::class, new TableResultPrinter( 'table' ) ); } public function testGetResult_Empty() { $queryResult = $this->getMockBuilder( '\SMW\Query\QueryResult' ) ->disableOriginalConstructor() ->getMock(); $queryResult->expects( $this->any() ) ->method( 'getErrors' ) ->willReturn( [] ); $instance = new TableResultPrinter( 'table' ); $this->assertIsString( $instance->getResult( $queryResult, [], SMW_OUTPUT_WIKI ) ); } }