Changeset 1226
- Timestamp:
- 01/11/08 18:34:19 (4 months ago)
- Files:
-
- trunk/src/main/php/net/stubbles/service/annotations/stubWebMethodAnnotation.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php (modified) (6 diffs)
- trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcResponse.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/jsonrpc/util/stubJsonRpcProxyGenerator.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/jsonrpc/util/stubSmdGenerator.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/soap/native/stubNativeSoapClient.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/service/soap/stubAbstractSoapClient.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/soap/stubSoapClient.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/soap/stubSoapClientConfiguration.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/service/soap/stubSoapClientGenerator.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/service/soap/stubSoapException.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessorTestCase.php (modified) (6 diffs)
- trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcResponseTestCase.php (modified) (2 diffs)
- trunk/src/test/php/net/stubbles/service/jsonrpc/util/stubJsonRpcProxyGeneratorTestCase.php (modified) (2 diffs)
- trunk/src/test/php/net/stubbles/service/soap/native/stubNativeSoapClientTestCase.php (modified) (4 diffs)
- trunk/src/test/php/net/stubbles/service/soap/stubSoapClientConfigurationTestCase.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/service/annotations/stubWebMethodAnnotation.php
r1127 r1226 7 7 * @subpackage service_annotations 8 8 */ 9 stubClassLoader::load('net .stubbles.reflection.annotations.stubAnnotation',10 'net .stubbles.reflection.annotations.stubAbstractAnnotation'9 stubClassLoader::load('net::stubbles::reflection::annotations::stubAnnotation', 10 'net::stubbles::reflection::annotations::stubAbstractAnnotation' 11 11 ); 12 12 /** trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php
r1127 r1226 9 9 * @subpackage service_jsonrpc 10 10 */ 11 stubClassLoader::load('net .stubbles.ioc.stubBinder',12 'net .stubbles.lang.stubMode',13 'net .stubbles.reflection.reflection',14 'net .stubbles.service.annotations.stubWebMethodAnnotation',15 'net .stubbles.service.jsonrpc.stubJsonRpcResponse',16 'net .stubbles.util.validators.stubPassThruValidator',17 'net .stubbles.util.validators.stubRegexValidator',18 'net .stubbles.websites.processors.stubAbstractProcessor'11 stubClassLoader::load('net::stubbles::ioc::stubBinder', 12 'net::stubbles::lang::stubMode', 13 'net::stubbles::reflection::reflection', 14 'net::stubbles::service::annotations::stubWebMethodAnnotation', 15 'net::stubbles::service::jsonrpc::stubJsonRpcResponse', 16 'net::stubbles::util::validators::stubPassThruValidator', 17 'net::stubbles::util::validators::stubRegexValidator', 18 'net::stubbles::websites::processors::stubAbstractProcessor' 19 19 ); 20 20 /** … … 108 108 $configFile = stubConfig::getConfigPath() . '/xml/' . stubRegistry::getConfig(self::KEY_SERVICE_FILE, 'json-rpc-service.xml'); 109 109 if (file_exists($configFile) === false || is_readable($configFile) === false) { 110 stubClassLoader::load('net .stubbles.lang.exceptions.stubFileNotFoundException');110 stubClassLoader::load('net::stubbles::lang::exceptions::stubFileNotFoundException'); 111 111 throw new stubFileNotFoundException($configFile); 112 112 } … … 130 130 } 131 131 132 stubClassLoader::load('net .stubbles.util.xjconf.xjconf',133 'net .stubbles.util.xjconf.xjconfReal');132 stubClassLoader::load('net::stubbles::util::xjconf::xjconf', 133 'net::stubbles::util::xjconf::xjconfReal'); 134 134 135 135 $xjconf = new stubXJConfFacade(new XJConfFacade(array('__default' => stubXJConfLoader::getInstance()))); … … 151 151 public function generateProxies($classes = null) 152 152 { 153 stubClassLoader::load('net .stubbles.service.jsonrpc.util.stubJsonRpcProxyGenerator');153 stubClassLoader::load('net::stubbles::service::jsonrpc::util::stubJsonRpcProxyGenerator'); 154 154 $tmp = parse_url($this->request->getURI()); 155 155 $serviceUrl = '//' . $tmp['path']; … … 183 183 public function generateSmd($class) 184 184 { 185 stubClassLoader::load('net .stubbles.service.jsonrpc.util.stubSmdGenerator');185 stubClassLoader::load('net::stubbles::service::jsonrpc::util::stubSmdGenerator'); 186 186 $tmp = parse_url($this->request->getURI()); 187 187 $serviceUrl = '//' . $tmp['path']; … … 341 341 $binder = stubRegistry::get(stubBinder::REGISTRY_KEY); 342 342 if (($binder instanceof stubBinder) === false) { 343 throw new stubRuntimeException('No instance of net .stubbles.ioc.stubBinder in registry.');343 throw new stubRuntimeException('No instance of net::stubbles::ioc::stubBinder in registry.'); 344 344 } 345 345 trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcResponse.php
r971 r1226 7 7 * @subpackage service_jsonrpc 8 8 */ 9 stubClassLoader::load('net .stubbles.ipo.response.stubDecoratedResponse',10 'net .stubbles.php.string.stubRecursiveStringEncoder',11 'net .stubbles.php.string.stubUTF8Encoder'9 stubClassLoader::load('net::stubbles::ipo::response::stubDecoratedResponse', 10 'net::stubbles::php::string::stubRecursiveStringEncoder', 11 'net::stubbles::php::string::stubUTF8Encoder' 12 12 ); 13 13 /** trunk/src/main/php/net/stubbles/service/jsonrpc/util/stubJsonRpcProxyGenerator.php
r1165 r1226 8 8 * @subpackage service_jsonrpc_util 9 9 */ 10 stubClassLoader::load('net .stubbles.service.annotations.stubWebMethodAnnotation',11 'net .stubbles.reflection.reflection'10 stubClassLoader::load('net::stubbles::service::annotations::stubWebMethodAnnotation', 11 'net::stubbles::reflection::reflection' 12 12 ); 13 13 /** trunk/src/main/php/net/stubbles/service/jsonrpc/util/stubSmdGenerator.php
r955 r1226 8 8 * @subpackage service_jsonrpc_util 9 9 */ 10 stubClassLoader::load('net .stubbles.service.annotations.stubWebMethodAnnotation',11 'net .stubbles.reflection.reflection'10 stubClassLoader::load('net::stubbles::service::annotations::stubWebMethodAnnotation', 11 'net::stubbles::reflection::reflection' 12 12 ); 13 13 /** trunk/src/main/php/net/stubbles/service/soap/native/stubNativeSoapClient.php
r1127 r1226 7 7 * @subpackage service_soap_native 8 8 */ 9 stubClassLoader::load('net .stubbles.lang.exceptions.stubIllegalArgumentException',10 'net .stubbles.lang.exceptions.stubRuntimeException',11 'net .stubbles.service.soap.stubAbstractSoapClient',12 'net .stubbles.service.soap.stubSoapFault'9 stubClassLoader::load('net::stubbles::lang::exceptions::stubIllegalArgumentException', 10 'net::stubbles::lang::exceptions::stubRuntimeException', 11 'net::stubbles::service::soap::stubAbstractSoapClient', 12 'net::stubbles::service::soap::stubSoapFault' 13 13 ); 14 14 /** … … 31 31 { 32 32 if (extension_loaded('soap') === false) { 33 throw new stubRuntimeException('net .stubbles.service.soap.stubNativeSoapClient requires PHP extension soap.');33 throw new stubRuntimeException('net::stubbles::service::soap::stubNativeSoapClient requires PHP extension soap.'); 34 34 } 35 35 trunk/src/main/php/net/stubbles/service/soap/stubAbstractSoapClient.php
r991 r1226 7 7 * @subpackage service_soap 8 8 */ 9 stubClassLoader::load('net .stubbles.service.soap.stubSoapClient');9 stubClassLoader::load('net::stubbles::service::soap::stubSoapClient'); 10 10 /** 11 11 * Basic implementation for SOAP clients. trunk/src/main/php/net/stubbles/service/soap/stubSoapClient.php
r989 r1226 7 7 * @subpackage service_soap 8 8 */ 9 stubClassLoader::load('net .stubbles.service.soap.stubSoapClientConfiguration',10 'net .stubbles.service.soap.stubSoapException',11 'net .stubbles.util.net.http.stubHTTPURL'9 stubClassLoader::load('net::stubbles::service::soap::stubSoapClientConfiguration', 10 'net::stubbles::service::soap::stubSoapException', 11 'net::stubbles::util::net::http::stubHTTPURL' 12 12 ); 13 13 /** trunk/src/main/php/net/stubbles/service/soap/stubSoapClientConfiguration.php
r1127 r1226 7 7 * @subpackage service_soap 8 8 */ 9 stubClassLoader::load('net .stubbles.lang.exceptions.stubIllegalArgumentException');9 stubClassLoader::load('net::stubbles::lang::exceptions::stubIllegalArgumentException'); 10 10 /** 11 11 * Configuration container for SOAP clients. … … 77 77 $endPoint = stubHTTPURL::fromString($endPoint); 78 78 if (null === $endPoint) { 79 throw new stubIllegalArgumentException('Endpoint must be a string denoting an URL or an instance of net .stubbles.util.net.http.stubHTTPURL.');79 throw new stubIllegalArgumentException('Endpoint must be a string denoting an URL or an instance of net::stubbles::util::net::http::stubHTTPURL.'); 80 80 } 81 81 } elseif (($endPoint instanceof stubHTTPURL) === false) { 82 throw new stubIllegalArgumentException('Endpoint must be a string denoting an URL or an instance of net .stubbles.util.net.http.stubHTTPURL.');82 throw new stubIllegalArgumentException('Endpoint must be a string denoting an URL or an instance of net::stubbles::util::net::http::stubHTTPURL.'); 83 83 } 84 84 trunk/src/main/php/net/stubbles/service/soap/stubSoapClientGenerator.php
r990 r1226 7 7 * @subpackage service_soap 8 8 */ 9 stubClassLoader::load('net .stubbles.reflection.stubReflectionClass',10 'net .stubbles.service.soap.stubSoapClient',11 'net .stubbles.service.soap.stubSoapClientConfiguration'9 stubClassLoader::load('net::stubbles::reflection::stubReflectionClass', 10 'net::stubbles::service::soap::stubSoapClient', 11 'net::stubbles::service::soap::stubSoapClientConfiguration' 12 12 ); 13 13 /** … … 57 57 { 58 58 if (extension_loaded('soap') === true) { 59 $this->drivers['net .stubbles.service.soap.native.stubNativeSoapClient'] = 'net.stubbles.service.soap.native.stubNativeSoapClient';59 $this->drivers['net::stubbles::service::soap::native::stubNativeSoapClient'] = 'net::stubbles::service::soap::native::stubNativeSoapClient'; 60 60 } 61 61 } trunk/src/main/php/net/stubbles/service/soap/stubSoapException.php
r987 r1226 7 7 * @subpackage service_soap 8 8 */ 9 stubClassLoader::load('net .stubbles.service.soap.stubSoapFault');9 stubClassLoader::load('net::stubbles::service::soap::stubSoapFault'); 10 10 /** 11 11 * Exception to be thrown on failed SOAP operations. trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessorTestCase.php
r884 r1226 1 1 <?php 2 2 /** 3 * Test for net .stubbles.service.jsonrpc.stubJsonRpcProcessor3 * Test for net::stubbles::service::jsonrpc::stubJsonRpcProcessor. 4 4 * 5 5 * @author Richard Sternagel … … 8 8 * @subpackage service_jsonrpc_test 9 9 */ 10 stubClassLoader::load('net .stubbles.service.jsonrpc.stubJsonRpcProcessor');10 stubClassLoader::load('net::stubbles::service::jsonrpc::stubJsonRpcProcessor'); 11 11 Mock::generate('stubPageFactory'); 12 12 Mock::generate('stubRequest'); … … 65 65 } 66 66 /** 67 * Tests for net .stubbles.service.jsonrpc.stubJsonRpcProcessor67 * Tests for net::stubbles::service::jsonrpc::stubJsonRpcProcessor. 68 68 * 69 69 * @package stubbles … … 121 121 ) 122 122 ); 123 stubRegistry::set( 'net.stubbles.ioc.stubBinder', new stubBinder());123 stubRegistry::set(stubBinder::REGISTRY_KEY, new stubBinder()); 124 124 } 125 125 … … 129 129 public function tearDown() 130 130 { 131 stubRegistry::remove( 'net.stubbles.ioc.stubBinder');131 stubRegistry::remove(stubBinder::REGISTRY_KEY); 132 132 } 133 133 … … 250 250 public function testWithoutBinderInRegistry() 251 251 { 252 stubRegistry::remove( 'net.stubbles.ioc.stubBinder');252 stubRegistry::remove(stubBinder::REGISTRY_KEY); 253 253 $this->mockRequest->setReturnValue('getValidatedRawData', '{"method":"Test.add","params":["2","2"],"id":"1"}'); 254 $this->mockResponse->expect('write', array('{"id":"1","result":null,"error":"No instance of net .stubbles.ioc.stubBinder in registry."}'));254 $this->mockResponse->expect('write', array('{"id":"1","result":null,"error":"No instance of net::stubbles::ioc::stubBinder in registry."}')); 255 255 $this->proc->processPostRequest(); 256 256 } trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcResponseTestCase.php
r793 r1226 1 1 <?php 2 2 /** 3 * Test for net .stubbles.service.jsonrpc.stubJsonRpcResponse.3 * Test for net::stubbles::service::jsonrpc::stubJsonRpcResponse. 4 4 * 5 5 * @author Richard Sternagel … … 8 8 * @subpackage service_jsonrpc_test 9 9 */ 10 stubClassLoader::load('net .stubbles.service.jsonrpc.stubJsonRpcResponse');10 stubClassLoader::load('net::stubbles::service::jsonrpc::stubJsonRpcResponse'); 11 11 Mock::generate('stubResponse'); 12 12 /** 13 * Tests for net .stubbles.service.jsonrpc.stubJsonRpcResponse.13 * Tests for net::stubbles::service::jsonrpc::stubJsonRpcResponse. 14 14 * 15 15 * @package stubbles trunk/src/test/php/net/stubbles/service/jsonrpc/util/stubJsonRpcProxyGeneratorTestCase.php
r1165 r1226 1 1 <?php 2 2 /** 3 * Tests for net .stubbles.service.jsonrpc.util.stubJsonRpcProxyGenerator3 * Tests for net::stubbles::service::jsonrpc::util::stubJsonRpcProxyGenerator. 4 4 * 5 5 * @author Stephan Schmidt <schst@stubbles.net> … … 7 7 * @subpackage util_test 8 8 */ 9 stubClassLoader::load('net .stubbles.service.jsonrpc.util.stubJsonRpcProxyGenerator');9 stubClassLoader::load('net::stubbles::service::jsonrpc::util::stubJsonRpcProxyGenerator'); 10 10 /** 11 * Tests for net .stubbles.service.jsonrpc.util.stubJsonRpcProxyGenerator11 * Tests for net::stubbles::service::jsonrpc::util::stubJsonRpcProxyGenerator. 12 12 * 13 13 * @author Stephan Schmidt <schst@stubbles.net> trunk/src/test/php/net/stubbles/service/soap/native/stubNativeSoapClientTestCase.php
r994 r1226 1 1 <?php 2 2 /** 3 * Test for net .stubbles.service.soap.native.stubNativeSoapClient.3 * Test for net::stubbles::service::soap::native::stubNativeSoapClient. 4 4 * 5 5 * @author Frank Kleine <mikey@stubbles.net> … … 7 7 * @subpackage service_soap_native_test 8 8 */ 9 stubClassLoader::load('net .stubbles.service.soap.native.stubNativeSoapClient');9 stubClassLoader::load('net::stubbles::service::soap::native::stubNativeSoapClient'); 10 10 Mock::generatePartial('stubNativeSoapClient', 'PartialMockstubNativeSoapClient', array('createClient')); 11 11 if (extension_loaded('soap') === true) { … … 13 13 } 14 14 /** 15 * Tests for net .stubbles.service.soap.native.stubNativeSoapClient.15 * Tests for net::stubbles::service::soap::native::stubNativeSoapClient. 16 16 * 17 17 * @package stubbles … … 32 32 public function skip() 33 33 { 34 $this->skipUnless(extension_loaded('soap'), 'net .stubbles.service.soap.native.stubNativeSoapClient requires PHP-extension "soap".');34 $this->skipUnless(extension_loaded('soap'), 'net::stubbles::service::soap::native::stubNativeSoapClient requires PHP-extension "soap".'); 35 35 } 36 36 trunk/src/test/php/net/stubbles/service/soap/stubSoapClientConfigurationTestCase.php
r995 r1226 1 1 <?php 2 2 /** 3 * Test for net .stubbles.service.soap.stubSoapClientConfiguration.3 * Test for net::stubbles::service::soap::stubSoapClientConfiguration. 4 4 * 5 5 * @author Frank Kleine <mikey@stubbles.net> … … 7 7 * @subpackage service_soap_test 8 8 */ 9 stubClassLoader::load('net .stubbles.service.soap.stubSoapClientConfiguration');9 stubClassLoader::load('net::stubbles::service::soap::stubSoapClientConfiguration'); 10 10 /** 11 * Tests for net .stubbles.service.soap.stubSoapClientConfiguration.11 * Tests for net::stubbles::service::soap::stubSoapClientConfiguration. 12 12 * 13 13 * @package stubbles … … 17 17 { 18 18 /** 19 * test that only strings and instances of net .stubbles.util.net.http.stubHTTPURL19 * test that only strings and instances of net::stubbles::util::net::http::stubHTTPURL 20 20 * are accepted as value for $endPoint 21 21 */ … … 32 32 33 33 /** 34 * test that only strings and instances of net .stubbles.util.net.http.stubHTTPURL34 * test that only strings and instances of net::stubbles::util::net::http::stubHTTPURL 35 35 * are accepted as value for $endPoint 36 36 */ … … 44 44 45 45 /** 46 * test that only strings and instances of net .stubbles.util.net.http.stubHTTPURL46 * test that only strings and instances of net::stubbles::util::net::http.stubHTTPURL 47 47 * are accepted as value for $endPoint 48 48 */
