File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 49
49
use PHPUnit \Extensions \Selenium2TestCase \Element ;
50
50
use PHPUnit \Extensions \Selenium2TestCase \ElementCriteria ;
51
51
use PHPUnit \Extensions \Selenium2TestCase \KeysHolder ;
52
+ use PHPUnit \Extensions \Selenium2TestCase \NoSeleniumException ;
52
53
use PHPUnit \Framework \TestCase ;
53
54
use PHPUnit \Framework \TestResult ;
54
55
use PHPUnit \Util \InvalidArgumentHelper ;
55
- use PHPUnit_Extensions_Selenium2TestCase_NoSeleniumException ;
56
56
use PHPUnit_Extensions_Selenium2TestCase_Session ;
57
57
use PHPUnit_Extensions_Selenium2TestCase_SessionStrategy ;
58
58
use PHPUnit_Extensions_Selenium2TestCase_SessionStrategy_Isolated ;
@@ -338,7 +338,7 @@ public function prepareSession()
338
338
if (!$ this ->session ) {
339
339
$ this ->session = $ this ->getStrategy ()->session ($ this ->parameters );
340
340
}
341
- } catch (PHPUnit_Extensions_Selenium2TestCase_NoSeleniumException $ e ) {
341
+ } catch (NoSeleniumException $ e ) {
342
342
$ this ->markTestSkipped ("The Selenium Server is not active on host {$ this ->parameters ['host ' ]} at port {$ this ->parameters ['port ' ]}. " );
343
343
}
344
344
return $ this ->session ;
Original file line number Diff line number Diff line change 45
45
namespace PHPUnit \Extensions \Selenium2TestCase ;
46
46
47
47
use BadMethodCallException ;
48
- use PHPUnit_Extensions_Selenium2TestCase_NoSeleniumException ;
49
48
use PHPUnit_Extensions_Selenium2TestCase_Response ;
50
49
use PHPUnit_Extensions_Selenium2TestCase_Session ;
51
50
use PHPUnit_Extensions_Selenium2TestCase_Session_Timeouts ;
@@ -130,14 +129,14 @@ public function curl($http_method,
130
129
131
130
$ rawResponse = trim (curl_exec ($ curl ));
132
131
if (curl_errno ($ curl )) {
133
- throw new PHPUnit_Extensions_Selenium2TestCase_NoSeleniumException (
132
+ throw new NoSeleniumException (
134
133
'Error connection[ ' . curl_errno ($ curl ) . '] to ' .
135
134
$ url ->getValue () . ': ' . curl_error ($ curl )
136
135
);
137
136
}
138
137
$ info = curl_getinfo ($ curl );
139
138
if ($ info ['http_code ' ] == 0 ) {
140
- throw new PHPUnit_Extensions_Selenium2TestCase_NoSeleniumException ();
139
+ throw new NoSeleniumException ();
141
140
}
142
141
if ($ info ['http_code ' ] == 404 ) {
143
142
throw new BadMethodCallException ("The command $ url is not recognized by the server. " );
Original file line number Diff line number Diff line change 42
42
* @since File available since Release 1.2.9
43
43
*/
44
44
45
+ namespace PHPUnit \Extensions \Selenium2TestCase ;
46
+
45
47
/**
46
48
* @package PHPUnit_Selenium
47
49
* @author Giorgio Sironi <info@giorgiosironi.com>
51
53
* @link http://www.phpunit.de/
52
54
* @since Class available since Release 1.2.8
53
55
*/
54
- class PHPUnit_Extensions_Selenium2TestCase_NoSeleniumException extends \PHPUnit \Extensions \Selenium2TestCase \Exception
56
+ class NoSeleniumException extends \PHPUnit \Extensions \Selenium2TestCase \Exception
55
57
{
56
58
}
You can’t perform that action at this time.
0 commit comments