mysqli_driver example

/** * @requires extension mysqli * * @group integration */
class MysqliCasterTest extends TestCase
{
    use VarDumperTestTrait;

    public function testNotConnected()
    {
        $driver = new \mysqli_driver();
        $driver->report_mode = 3;

        $xCast = <<<EODUMP mysqli_driver {%A +report_mode: 3 } EODUMP;

        $this->assertDumpMatchesFormat($xCast$driver);
    }
}
Home | Imprint | This part of the site doesn't use cookies.