FillStoreFormTest.php 942 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
 * Created by PhpStorm.
 * User: crose
 * Date: 1/2/16
 * Time: 11:10 PM
 */

namespace qfq;

require_once(__DIR__ . '/../../qfq/store/FillStoreForm.php');

//require_once(__DIR__ . '/../../qfq/exceptions/CodeException.php');


class FillStoreFormTest extends \PHPUnit_Framework_TestCase {

    /**
     * @throws CodeException
     * @throws UserFormException
     */
    public function testFake() {

        # Violates SANITIZE class: SANITIZE string is always an empty string.
        # Access are cached: use new variables for every test.

        # Check ''
//        $this->assertEquals('', Sanitize::sanitize('', SANITIZE_ALLOW_ALNUMX), "SANITIZE_ALNUMX fails");
        $this->assertEquals('', '');

    }
//
//    /**
//     * @expectedException \qfq\UserFormException
//     */
//    public function testSanitizeExceptionMinMaxMissingMin() {
//        Sanitize::sanitize(56, SANITIZE_ALLOW_MIN_MAX, '|45');
//    }
//

}