Dshafik\MySQL\Tests\MySqlShimTest::test_mysql_query_insert PHP Méthode

test_mysql_query_insert() public méthode

    public function test_mysql_query_insert()
    {
        $this->getConnection("shim_test");
        $result = mysql_query("INSERT INTO\n                testing (one, two, three, four, five, six, seven, eight, nine, ten, eleven)\n             VALUES\n                ('1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'),\n                ('2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2'),\n                ('3', '3', '3', '3', '3', '3', '3', '3', '3', '3', '3'),\n                ('4', '4', '4', '4', '4', '4', '4', '4', '4', '4', '4')");
        $this->assertTrue($result, mysql_error());
        $result = mysql_query("INSERT INTO\n                testing2 (one, two, three, four, five, six, seven, eight, nine, ten, eleven)\n             VALUES\n                ('1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'),\n                ('2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2'),\n                ('3', '3', '3', '3', '3', '3', '3', '3', '3', '3', '3'),\n                ('4', '4', '4', '4', '4', '4', '4', '4', '4', '4', '4')");
        $this->assertTrue($result, mysql_error());
    }
MySqlShimTest