@@ -100,7 +100,7 @@ public function testConnectEhlo() {
100
100
$ this ->socket ->expects ($ this ->any ())->method ('connect ' )->will ($ this ->returnValue (true ));
101
101
$ this ->socket ->expects ($ this ->at (0 ))->method ('read ' )->will ($ this ->returnValue (false ));
102
102
$ this ->socket ->expects ($ this ->at (1 ))->method ('read ' )->will ($ this ->returnValue ("220 Welcome message \r\n" ));
103
- $ this ->socket ->expects ($ this ->at (2 ))->method ('write ' )->with ("EHLO " . env ( ' HTTP_HOST ' ) . " \r\n" );
103
+ $ this ->socket ->expects ($ this ->at (2 ))->method ('write ' )->with ("EHLO localhost \r\n" );
104
104
$ this ->socket ->expects ($ this ->at (3 ))->method ('read ' )->will ($ this ->returnValue (false ));
105
105
$ this ->socket ->expects ($ this ->at (4 ))->method ('read ' )->will ($ this ->returnValue ("250 Accepted \r\n" ));
106
106
$ this ->SmtpTransport ->connect ();
@@ -115,10 +115,10 @@ public function testConnectHelo() {
115
115
$ this ->socket ->expects ($ this ->any ())->method ('connect ' )->will ($ this ->returnValue (true ));
116
116
$ this ->socket ->expects ($ this ->at (0 ))->method ('read ' )->will ($ this ->returnValue (false ));
117
117
$ this ->socket ->expects ($ this ->at (1 ))->method ('read ' )->will ($ this ->returnValue ("220 Welcome message \r\n" ));
118
- $ this ->socket ->expects ($ this ->at (2 ))->method ('write ' )->with ("EHLO " . env ( ' HTTP_HOST ' ) . " \r\n" );
118
+ $ this ->socket ->expects ($ this ->at (2 ))->method ('write ' )->with ("EHLO localhost \r\n" );
119
119
$ this ->socket ->expects ($ this ->at (3 ))->method ('read ' )->will ($ this ->returnValue (false ));
120
120
$ this ->socket ->expects ($ this ->at (4 ))->method ('read ' )->will ($ this ->returnValue ("200 Not Accepted \r\n" ));
121
- $ this ->socket ->expects ($ this ->at (5 ))->method ('write ' )->with ("HELO " . env ( ' HTTP_HOST ' ) . " \r\n" );
121
+ $ this ->socket ->expects ($ this ->at (5 ))->method ('write ' )->with ("HELO localhost \r\n" );
122
122
$ this ->socket ->expects ($ this ->at (6 ))->method ('read ' )->will ($ this ->returnValue (false ));
123
123
$ this ->socket ->expects ($ this ->at (7 ))->method ('read ' )->will ($ this ->returnValue ("250 Accepted \r\n" ));
124
124
$ this ->SmtpTransport ->connect ();
@@ -134,10 +134,10 @@ public function testConnectFail() {
134
134
$ this ->socket ->expects ($ this ->any ())->method ('connect ' )->will ($ this ->returnValue (true ));
135
135
$ this ->socket ->expects ($ this ->at (0 ))->method ('read ' )->will ($ this ->returnValue (false ));
136
136
$ this ->socket ->expects ($ this ->at (1 ))->method ('read ' )->will ($ this ->returnValue ("220 Welcome message \r\n" ));
137
- $ this ->socket ->expects ($ this ->at (2 ))->method ('write ' )->with ("EHLO " . env ( ' HTTP_HOST ' ) . " \r\n" );
137
+ $ this ->socket ->expects ($ this ->at (2 ))->method ('write ' )->with ("EHLO localhost \r\n" );
138
138
$ this ->socket ->expects ($ this ->at (3 ))->method ('read ' )->will ($ this ->returnValue (false ));
139
139
$ this ->socket ->expects ($ this ->at (4 ))->method ('read ' )->will ($ this ->returnValue ("200 Not Accepted \r\n" ));
140
- $ this ->socket ->expects ($ this ->at (5 ))->method ('write ' )->with ("HELO " . env ( ' HTTP_HOST ' ) . " \r\n" );
140
+ $ this ->socket ->expects ($ this ->at (5 ))->method ('write ' )->with ("HELO localhost \r\n" );
141
141
$ this ->socket ->expects ($ this ->at (6 ))->method ('read ' )->will ($ this ->returnValue (false ));
142
142
$ this ->socket ->expects ($ this ->at (7 ))->method ('read ' )->will ($ this ->returnValue ("200 Not Accepted \r\n" ));
143
143
$ this ->SmtpTransport ->connect ();
@@ -259,4 +259,4 @@ public function testQuit() {
259
259
$ this ->SmtpTransport ->disconnect ();
260
260
}
261
261
262
- }
262
+ }
0 commit comments