I assume, that you already have phpunit installed and added into PATH.
Create guestbook database in mysql.
Create guestbook table in that database.
File src\Guestbook.php
<?phpTL;DR do what the last section tells you to do
An absolute path is one which includes all path components from the root of the file system. It starts with a leading
/ on unix-like operating systems, or a drive letter on Windows.
Unix: /full/path/to/file.php
Windows C:\full\path\to\file.php
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Upload your files</title> | |
| </head> | |
| <body> | |
| <form enctype="multipart/form-data" action="upload.php" method="POST"> | |
| <p>Upload your file</p> | |
| <input type="file" name="uploaded_file"></input><br /> | |
| <input type="submit" value="Upload"></input> | 
| <?php | |
| /** | |
| * Created by PhpStorm. * User: Faizan Khan * Date: 1/2/2018 * Time: 10:51 AM | |
| */ | |
| /*Script Motive: The purpose of the file is to present different PDO Functions for DML and DDL operations | |
| Sample Table | |
| Table Name: UserTbl | |
| Columns: Id, UserName, Email, RecordAddDate | |
| */ | 
| /** | |
| * @Method responsável por fazer o insert utilizando PDO | |
| * @method: insert | |
| * @param array $dados | |
| * @param string $tabela | |
| * @return boolean | |
| */ | |
| public function insert( Array $dados, $tabela = NULL ) | |
| { | 
| <?php | |
| $backup_config = array( | |
| 'DB_HOST' => '127.0.0.1',////Database hostname | |
| 'DB_NAME' => 'test_db',//Database name to backup | |
| 'DB_USERNAME' => 'root',//Database account username | |
| 'DB_PASSWORD' => '',//Database account password | |
| 'INCLUDE_DROP_TABLE' => false,//Include DROP TABLE IF EXISTS | |
| 'SAVE_DIR' => '',//Folder to save file in | |
| 'SAVE_AS' => 'test_db-',//Prepend filename | |
| 'APPEND_DATE_FORMAT' => 'Y-m-d-H-i',//Append date to file name | 
| <!doctype html> | |
| <html manifest="StickyNotes.manifest"> | |
| <head> | |
| <title>WebKit HTML 5 SQL Storage Notes Demo</title> | |
| <style> | |
| body { | |
| font-family: 'Lucida Grande', 'Helvetica', sans-serif; | |
| } | 
| // Copyright (c) 2012 Sutoiku, Inc. (MIT License) | |
| function hex2dec(number) { | |
| // Return error if number is not hexadecimal or contains more than ten characters (10 digits) | |
| if (!/^[0-9A-Fa-f]{1,10}$/.test(number)) return '#NUM!'; | |
| // Convert hexadecimal number to decimal | |
| var decimal = parseInt(number, 16); | |
| // Return decimal number |