| Current File : /home/jvzmxxx/wiki1/extensions/Flow/tests/phpunit/Mock/ExternalStoreFlowMock.php |
<?php
// The primary purpose of this is to check whether ExternalStore is used, to verify that it
// doesn't insert rows that are not later used.
// This is not in Flow\Tests\Mock since ExternalStore expects it in the global namespace.
class ExternalStoreFlowMock extends ExternalStoreMedium {
public static $isUsed = false;
public function __construct() {
self::$isUsed = true;
}
public function fetchFromURL( $url ) {
throw new MWException( 'The mock does not support ' . __FUNCTION__ . '.' );
}
public function store( $location, $data ) {
return 'FlowMock://1';
}
}