dis-bench / src /php /php-src /ext /pdo_firebird /tests /payload_test.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
508 Bytes
--TEST--
FB payload server satisfies connection attempt
--EXTENSIONS--
pdo_firebird
sockets
--FILE--
<?php
require_once "payload_server.inc";
$address = run_server(__DIR__ . "/payload_test.data");
// no need to change the credentials; we're running against a fake server
$dsn = "firebird:dbname=inet://$address/test";
$username = 'SYSDBA';
$password = 'masterkey';
new PDO($dsn, $username, $password, [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_AUTOCOMMIT => false,
]);
?>
--EXPECT--