MediaWiki
1.33.0
|
\MediaWiki\Sparql\SparqlClient More...
Public Member Functions | |
optionsProvider () | |
testBadQuery () | |
\Mediawiki\Sparql\SparqlException More... | |
testOptions ( $sparql, $options, $timeout, $expectedUrl, $expectedOptions) | |
optionsProvider More... | |
testQuery () | |
Private Member Functions | |
getRequestFactory ( $request) | |
getRequestMock ( $content) | |
\MediaWiki\Sparql\SparqlClient
Definition at line 12 of file SparqlClientTest.php.
|
private |
Definition at line 16 of file SparqlClientTest.php.
References $request, and class.
Referenced by MediaWiki\Sparql\SparqlClientTest\testBadQuery(), and MediaWiki\Sparql\SparqlClientTest\testQuery().
|
private |
Definition at line 22 of file SparqlClientTest.php.
References $content, $request, class, and StatusValue\newGood().
Referenced by MediaWiki\Sparql\SparqlClientTest\testOptions(), and MediaWiki\Sparql\SparqlClientTest\testQuery().
MediaWiki\Sparql\SparqlClientTest::optionsProvider | ( | ) |
Definition at line 94 of file SparqlClientTest.php.
References MediaWiki\Sparql\SparqlClient\MAX_GET_SIZE, and Http\userAgent().
MediaWiki\Sparql\SparqlClientTest::testBadQuery | ( | ) |
\Mediawiki\Sparql\SparqlException
Definition at line 86 of file SparqlClientTest.php.
References $request, class, MediaWiki\Sparql\SparqlClientTest\getRequestFactory(), and StatusValue\newFatal().
MediaWiki\Sparql\SparqlClientTest::testOptions | ( | $sparql, | |
$options, | |||
$timeout, | |||
$expectedUrl, | |||
$expectedOptions | |||
) |
optionsProvider
string | $sparql | |
array | null | $options | |
int | null | $timeout | |
array | $expectedUrl | |
array | $expectedOptions |
Definition at line 161 of file SparqlClientTest.php.
References $options, $request, as, class, MediaWiki\Sparql\SparqlClientTest\getRequestMock(), and use.
MediaWiki\Sparql\SparqlClientTest::testQuery | ( | ) |
Definition at line 29 of file SparqlClientTest.php.
References $request, MediaWiki\Sparql\SparqlClientTest\getRequestFactory(), and MediaWiki\Sparql\SparqlClientTest\getRequestMock().