-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcssTest.php
More file actions
32 lines (21 loc) · 949 Bytes
/
cssTest.php
File metadata and controls
32 lines (21 loc) · 949 Bytes
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
<?php
// cssTest.php
// author: Michael McGinn
include_once('templates/header.php');
require_once('php/Packager.php');
require_once('php/PackagerFactory.php');
//Testing Code
$fileName = 'php/tests/cssTestFile.css';
if (is_file($fileName))
{
$packager = packagerFactory($fileName);
$fileHandle = fopen($fileName, 'r');
// Go through the file line by line.
while (!feof($fileHandle)) {
$line = fgets($fileHandle);
$line = $packager->packager($line, $braceCount);
echo $line;
}
}
include_once('templates/footer.php');
?>