ParagonIE\EasyDB\Tests\Is1DArrayTest::testSafeQueryThrowsException PHP Метод

testSafeQueryThrowsException() публичный Метод

public testSafeQueryThrowsException ( $dsn, null $username = null, null $password = null, array $options = [] )
$dsn
$username null
$password null
$options array
    public function testSafeQueryThrowsException($dsn, $username = null, $password = null, $options = [])
    {
        $db = Factory::create($dsn, $username, $password, $options);
        $this->expectException(InvalidArgumentException::class);
        $db->safeQuery('SELECT ?', [[1]]);
    }