Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated phpunit tests

  • Loading branch information...
commit e5816d7d0ff10026fa67599f6553f19d4de850df 1 parent bf6c479
Cameron Jacobson authored December 25, 2012
9  src/KyotoTyphoon/KyotoTransport.php
@@ -14,22 +14,13 @@ public function __construct(Array $options){}
14 14
 
15 15
 	public function setScheme($scheme){
16 16
 		$this->scheme = $scheme;
17  
-		if($this->conn){
18  
-			$this->setConnection();
19  
-		}
20 17
 	}
21 18
 
22 19
 	public function setHost($host){
23 20
 		$this->host = $host;
24  
-		if($this->conn){
25  
-			$this->setConnection();
26  
-		}
27 21
 	}
28 22
 
29 23
 	public function setPort($port){
30 24
 		$this->port = $port;
31  
-		if($this->conn){
32  
-			$this->setConnection();
33  
-		}
34 25
 	}
35 26
 }
6  tests/KyotoTyphoon/KyotoClientTest.php
@@ -37,7 +37,7 @@ public function testClientConstructor(){
37 37
 	public function testBinaryProtocol(){
38 38
 		$this->BinaryClient = $this->getClient('binary');
39 39
 
40  
-		$prop = new \ReflectionProperty('\KyotoTyphoon\KyotoClient','transport');
  40
+		$prop = new \ReflectionProperty('\KyotoTyphoon\Client\KyotoBinaryClient','transport');
41 41
 		$prop->setAccessible(true);
42 42
 		$binaryTransport = $prop->getValue($this->BinaryClient);
43 43
 		$this->assertTrue($binaryTransport instanceof \KyotoTyphoon\Transport\KyotoBinaryTransport);
@@ -54,7 +54,7 @@ public function testBinaryProtocol(){
54 54
 	public function testRestProtocol(){
55 55
 		$this->RestClient = $this->getClient('rest');
56 56
 
57  
-		$prop = new \ReflectionProperty('\KyotoTyphoon\KyotoClient','transport');
  57
+		$prop = new \ReflectionProperty('\KyotoTyphoon\Client\KyotoRestClient','transport');
58 58
 		$prop->setAccessible(true);
59 59
 		$restTransport = $prop->getValue($this->RestClient);
60 60
 		$this->assertTrue($restTransport instanceof \KyotoTyphoon\Transport\KyotoRestTransport);
@@ -71,7 +71,7 @@ public function testRestProtocol(){
71 71
 	public function testRpcProtocol(){
72 72
 		$this->RpcClient = $this->getClient('rpc');
73 73
 
74  
-		$prop = new \ReflectionProperty('\KyotoTyphoon\KyotoClient','transport');
  74
+		$prop = new \ReflectionProperty('\KyotoTyphoon\Client\KyotoRpcClient','transport');
75 75
 		$prop->setAccessible(true);
76 76
 		$rpcTransport = $prop->getValue($this->RpcClient);
77 77
 		$this->assertTrue($rpcTransport instanceof \KyotoTyphoon\Transport\KyotoRpcTransport);

0 notes on commit e5816d7

Please sign in to comment.
Something went wrong with that request. Please try again.