PDO4You\PDO4YouTest::testMultipleInsertInArrayFormat PHP 메소드

testMultipleInsertInArrayFormat() 공개 메소드

    public function testMultipleInsertInArrayFormat()
    {
        $array['query'] = array(array('table' => 'users', 'values' => array('firstname' => "John", 'lastname' => "Lennon")), array('table' => 'users', 'values' => array('firstname' => "Paul", 'lastname' => "McCartney")));
        // Executes the SQL and stores the result
        $result = test::insert($array);
        $this->assertEquals(2, self::getNumRowsAffected($result), 'Test with Insert method');
    }