PDO4You\PDO4YouTest::testMultipleInsertInJsonFormat PHP Method

testMultipleInsertInJsonFormat() public method

    public function testMultipleInsertInJsonFormat()
    {
        // SQL Insert in JSON format
        $json = '
        insert: [
            { table: "users" , values: { firstname: "John", lastname: "Lennon" } } ,
            { table: "users" , values: { firstname: "Paul", lastname: "McCartney" } } ,
            { table: "books" , values: { title: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", author: "Giovanni Ramos" } }
        ]
        ';
        // Executes the SQL and stores the result
        $result = test::execute($json);
        $this->assertEquals(3, self::getNumRowsAffected($result), 'Test with Insert command');
    }