| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 32 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 17 | function testIntegration()  | 
            ||
| 18 |     { | 
            ||
| 19 | // $xss = $this->security->xss();  | 
            ||
| 20 | $sanitise = $this->security->sanitise();  | 
            ||
| 21 | |||
| 22 | |||
| 23 | echo "\nXSS";  | 
            ||
| 24 | $string = 'Visit my website http://www.doajob.org?redirect=https://www.google.com';  | 
            ||
| 25 | // echo "\nString: " . $string;  | 
            ||
| 26 | // $cleanString = $xss->clean($string);  | 
            ||
| 27 | // echo "\nString: " . $cleanString;  | 
            ||
| 28 | // echo "\n";  | 
            ||
| 29 | // echo "\nXSS Url";  | 
            ||
| 30 | // $string = 'Visit my website http://www.doajob.org?redirect=https://www.google.com';  | 
            ||
| 31 | // echo "\nString: " . $string;  | 
            ||
| 32 | // $cleanString = $xss->cleanUrl($string);  | 
            ||
| 33 | // echo "\nString: " . $cleanString;  | 
            ||
| 34 | // echo "\n";  | 
            ||
| 35 | // echo "\nSanitiser";  | 
            ||
| 36 | |||
| 37 | echo "\nString: " . $sanitise->removeUrl($string);  | 
            ||
| 38 |         if ($sanitise->isSanitised()) { | 
            ||
| 39 | echo "\n1";  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 |         echo "\nString: " . $sanitise->removeUrl("Rob WIlson"); | 
            ||
| 43 |         if ($sanitise->isSanitised()) { | 
            ||
| 44 | echo "\n1";  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | |||
| 48 | }  | 
            ||
| 49 | |||
| 51 | 
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider.