Skip to content

Commit dcaa93a

Browse files
authored
Test on PHP 8.4 (#19)
* Test on PHP 8.4 * Better fix for test fails than previous PR
1 parent 9fa64ce commit dcaa93a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.ddev/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: php-webdriver
22
type: php
33
docroot: ""
4-
php_version: "8.3"
4+
php_version: "8.4"
55
webserver_type: nginx-fpm
66
xdebug_enabled: false
77
additional_hostnames: []
@@ -17,7 +17,7 @@ nodejs_version: "18"
1717
corepack_enable: false
1818
web_extra_daemons:
1919
- name: chromedriver
20-
command: /usr/bin/chromedriver --verbose
20+
command: /usr/bin/chromedriver --port=9515 --verbose
2121
directory: /usr/bin
2222
- name: geckodriver
2323
command: /usr/local/bin/geckodriver -b /usr/bin/firefox

.github/workflows/Tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
php: [ '8.0', '8.3' ]
20+
# Changes here might also require changes to .ddev/config.yaml.
21+
php: [ '8.0', '8.4' ]
2122
fail-fast: false
2223

2324
steps:

test/Test/WebDriver/ChromeDriverNonW3CTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@
3232
class ChromeDriverNonW3CTest extends ChromeDriverTest
3333
{
3434
protected $w3c = false;
35-
protected $testWebDriverRootUrl = 'http://oldchrome:4444';
3635

3736
}

test/Test/WebDriver/ChromeDriverTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636
class ChromeDriverTest extends WebDriverTestBase
3737
{
38-
protected $testWebDriverRootUrl = 'http://chrome:4444';
38+
protected $testWebDriverRootUrl = 'http://localhost:9515';
3939
protected $testWebDriverName = 'chromedriver';
4040
protected $w3c = true;
4141
protected $status = null;
@@ -71,7 +71,8 @@ protected function setUp(): void
7171
public function testStatus()
7272
{
7373
$this->assertEquals(1, $this->status['ready'], 'Chromedriver is not ready');
74-
$this->assertEquals('Selenium Grid ready.', $this->status['message'], 'Chromedriver is not ready');
74+
$this->assertEquals('ChromeDriver ready for new sessions.', $this->status['message'], 'Chromedriver is not ready');
75+
$this->assertNotEmpty($this->status['os'], 'OS info not detected');
7576
$this->assertSame($this->w3c, $this->session->isW3c());
7677
}
7778
}

0 commit comments

Comments
 (0)