PHP Classes

File: tests/unit/_bootstrap.php

Recommend this page to a friend!
  Classes of Derek McLean   HTML Forms   tests/unit/_bootstrap.php   Download  
File: tests/unit/_bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: HTML Forms
Generate and validate submitted HTML forms
Author: By
Last change:
Date: 6 years ago
Size: 417 bytes
 

Contents

Class file image Download
<?php
// Here you can initialize variables that will be available to your tests

namespace Del\Form\Field;

/**
 * @param $filename
 * @return bool
 */
function is_uploaded_file($filename)
{
    return
file_exists($filename);
}

/**
 * @param $filename
 * @param $destination
 * @return bool
 */
function move_uploaded_file($filename, $destination)
{
   
$copied = copy($filename, $destination);
    return
$copied;
}