/
04getcontent.phpt
53 lines (50 loc) · 1.06 KB
/
04getcontent.phpt
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
42
43
44
45
46
47
48
49
50
51
52
53
--TEST--
File_HtAccess::getContent()
--SKIPIF--
<?php
/* first one for cvs */
if (@include(dirname(__FILE__)."/../HtAccess.php")) {
$status = '';
} else if (@include('DB/HtAccess.php')) {
$status = '';
} else {
$status = 'skip';
}
print $status;
?>
--FILE--
<?php
/* first one for cvs */
if (@include(dirname(__FILE__)."/../HtAccess.php")) {
$status = '';
} else if (@include('DB/HtAccess.php')) {
$status = '';
} else {
$status = 'skip';
}
print $status;
$fh = new File_HtAccess('htaccess01');
$fh->load();
print $fh->getContent();
$fh = new File_HtAccess('htaccess02');
$fh->load();
print $fh->getContent();
$fh = new File_HtAccess('htaccess03');
$fh->load();
print $fh->getContent();
?>
--GET--
--POST--
--EXPECT--
AuthName "Protected"
AuthType Basic
AuthUserFile /usr/local/apache/conf/users.dat
Require valid-user
AuthName "Protected"
AuthType Basic
AuthUserFile /usr/local/apache/conf/users.dat
Require user tuupola laane viemero
AuthName "Protected"
AuthType Basic
AuthUserFile /usr/local/apache/conf/users.dat
Require user tuupola laane viemero