如何在開發的過程中加入測試。
- Model
- Repository
- Controller
- Auth
| /node_modules | |
| /public/storage | |
| /storage/*.key | |
| /vendor | |
| Homestead.yaml | |
| Homestead.json | |
| .env | |
| # ====== OS X =========================================== | |
| .DS_Store |
| <?php | |
| $max_file_size = 5*1024*1024; //5MB | |
| $path = "admin/upload/"; // Upload directory | |
| //$count = 0; // nr.successfully uploaded files | |
| $valid_formats = array("rar","zip","7z","pdf","xlsx","xls","docx","doc","txt"); | |
| $valid_formats_server = array( | |
| "application/pdf", | |
| "application/octet-stream", |
| gem 'raphael-rails' | |
| gem 'morrisjs-rails' | |
| gem 'gon' | |
| #... |
| <?php | |
| /** | |
| * JSON data to html table | |
| * | |
| * @param object $data | |
| * | |
| */ | |
| function jsonToTable ($data) | |
| { |
| <?php | |
| /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ | |
| /** | |
| * Converts to and from JSON format. | |
| * | |
| * JSON (JavaScript Object Notation) is a lightweight data-interchange | |
| * format. It is easy for humans to read and write. It is easy for machines | |
| * to parse and generate. It is based on a subset of the JavaScript | |
| * Programming Language, Standard ECMA-262 3rd Edition - December 1999. |