Skip to content

Commit 3a70b81

Browse files
committed
Fixup constant values for PHP 8.5
1 parent f9fdfa5 commit 3a70b81

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/Php84/PdoTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ public function testMysqlConstants()
113113
$this->assertSame(1001, \Pdo\Mysql::ATTR_LOCAL_INFILE);
114114
$this->assertSame(1002, \Pdo\Mysql::ATTR_INIT_COMMAND);
115115
$this->assertSame(1003, \Pdo\Mysql::ATTR_COMPRESS);
116-
$this->assertSame(1004, \Pdo\Mysql::ATTR_DIRECT_QUERY);
117-
$this->assertSame(1005, \Pdo\Mysql::ATTR_FOUND_ROWS);
118-
$this->assertSame(1006, \Pdo\Mysql::ATTR_IGNORE_SPACE);
119-
$this->assertSame(1007, \Pdo\Mysql::ATTR_SSL_KEY);
120-
$this->assertSame(1008, \Pdo\Mysql::ATTR_SSL_CERT);
121-
$this->assertSame(1009, \Pdo\Mysql::ATTR_SSL_CA);
122-
$this->assertSame(1010, \Pdo\Mysql::ATTR_SSL_CAPATH);
123-
$this->assertSame(1011, \Pdo\Mysql::ATTR_SSL_CIPHER);
124-
$this->assertSame(1012, \Pdo\Mysql::ATTR_SERVER_PUBLIC_KEY);
125-
$this->assertSame(1013, \Pdo\Mysql::ATTR_MULTI_STATEMENTS);
126-
$this->assertSame(1014, \Pdo\Mysql::ATTR_SSL_VERIFY_SERVER_CERT);
127-
$this->assertSame(1015, \Pdo\Mysql::ATTR_LOCAL_INFILE_DIRECTORY);
116+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1004 : 20, \Pdo\Mysql::ATTR_DIRECT_QUERY);
117+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1005 : 1004, \Pdo\Mysql::ATTR_FOUND_ROWS);
118+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1006 : 1005, \Pdo\Mysql::ATTR_IGNORE_SPACE);
119+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1007 : 1006, \Pdo\Mysql::ATTR_SSL_KEY);
120+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1008 : 1007, \Pdo\Mysql::ATTR_SSL_CERT);
121+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1009 : 1008, \Pdo\Mysql::ATTR_SSL_CA);
122+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1010 : 1009, \Pdo\Mysql::ATTR_SSL_CAPATH);
123+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1011 : 1010, \Pdo\Mysql::ATTR_SSL_CIPHER);
124+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1012 : 1011, \Pdo\Mysql::ATTR_SERVER_PUBLIC_KEY);
125+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1013 : 1012, \Pdo\Mysql::ATTR_MULTI_STATEMENTS);
126+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1014 : 1013, \Pdo\Mysql::ATTR_SSL_VERIFY_SERVER_CERT);
127+
$this->assertSame(\PHP_VERSION_ID < 80500 ? 1015 : 1014, \Pdo\Mysql::ATTR_LOCAL_INFILE_DIRECTORY);
128128
}
129129

130130
/**

0 commit comments

Comments
 (0)