This file is indexed.

/usr/share/php/kohana2/modules/unit_test/views/kohana_unit_test.php is in libkohana2-modules-php 2.3.4-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<style type="text/css">
#kohana-unit-test
{
	font-family: Monaco, 'Courier New';
	background-color: #F8FFF8;
	margin-top: 20px;
	clear: both;
	padding: 10px 10px 0;
	border: 1px solid #E5EFF8;
	text-align: left;
}
#kohana-unit-test pre
{
	margin: 0;
	font: inherit;
}
#kohana-unit-test table
{
	font-size: 1.0em;
	color: #4D6171;
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #E5EFF8;
	border-right: 1px solid #E5EFF8;
	border-left: 1px solid #E5EFF8;
	margin-bottom: 10px;
}
#kohana-unit-test th
{
	text-align: left;
	border-bottom: 1px solid #E5EFF8;
	background-color: #263038;
	padding: 3px;
	color: #FFF;
}
#kohana-unit-test td
{
	background-color: #FFF;
	border-bottom: 1px solid #E5EFF8;
	padding: 3px;
}
#kohana-unit-test .k-stats
{
	font-weight: normal;
	color: #83919C;
	text-align: right;
}
#kohana-unit-test .k-debug
{
	padding: 3px;
	background-color: #FFF0F0;
	border: 1px solid #FFD0D0;
	border-right-color: #FFFBFB;
	border-bottom-color: #FFFBFB;
	color: #83919C;
}
#kohana-unit-test .k-altrow td
{
	background-color: #F7FBFF;
}
#kohana-unit-test .k-name
{
	width: 25%;
	border-right: 1px solid #E5EFF8;
}
#kohana-unit-test .k-passed
{
	background-color: #E0FFE0;
}
#kohana-unit-test .k-altrow .k-passed
{
	background-color: #D0FFD0;
}
#kohana-unit-test .k-failed
{
	background-color: #FFE0E0;
}
#kohana-unit-test .k-altrow .k-failed
{
	background-color: #FFD0D0;
}
#kohana-unit-test .k-error
{
	background-color: #FFFFE0;
}
#kohana-unit-test .k-altrow .k-error
{
	background-color: #FFFFD1;
}
</style>

<div id="kohana-unit-test">

<?php

foreach ($results as $class => $methods):
text::alternate();

?>

	<table>
		<tr>
			<th><?php echo $class ?></th>
			<th class="k-stats">
				<?php printf('%s: %.2f%%', Kohana::lang('unit_test.score'), $stats[$class]['score']) ?> |
				<?php echo Kohana::lang('unit_test.total'),  ': ', $stats[$class]['total'] ?>,
				<?php echo Kohana::lang('unit_test.passed'), ': ', $stats[$class]['passed'] ?>,
				<?php echo Kohana::lang('unit_test.failed'), ': ', $stats[$class]['failed'] ?>,
				<?php echo Kohana::lang('unit_test.errors'), ': ', $stats[$class]['errors'] ?>
			</th>
		</tr>

		<?php if (empty($methods)): ?>

			<tr>
				<td colspan="2"><?php echo Kohana::lang('unit_test.no_tests_found') ?></td>
			</tr>

		<?php else:

			foreach ($methods as $method => $result):

				// Hide passed tests from report
				if ($result === TRUE AND $hide_passed === TRUE)
					continue;

				?>

				<tr class="<?php echo text::alternate('', 'k-altrow') ?>">
					<td class="k-name"><?php echo $method ?></td>

					<?php if ($result === TRUE): ?>

						<td class="k-passed"><strong><?php echo Kohana::lang('unit_test.passed') ?></strong></td>

					<?php elseif ($result instanceof Kohana_Unit_Test_Exception): ?>

						<td class="k-failed">
							<strong><?php echo Kohana::lang('unit_test.failed') ?></strong>
							<pre><?php echo html::specialchars($result->getMessage()) ?></pre>
							<?php echo html::specialchars($result->getFile()) ?> (<?php echo Kohana::lang('unit_test.line') ?>&nbsp;<?php echo $result->getLine() ?>)

							<?php if ($result->getDebug() !== NULL): ?>
								<pre class="k-debug" title="Debug info"><?php echo '(', gettype($result->getDebug()), ') ', html::specialchars(var_export($result->getDebug(), TRUE)) ?></pre>
							<?php endif ?>

						</td>

					<?php elseif ($result instanceof Exception): ?>

						<td class="k-error">
							<strong><?php echo Kohana::lang('unit_test.error') ?></strong>
							<pre><?php echo html::specialchars($result->getMessage()) ?></pre>
							<?php echo html::specialchars($result->getFile()) ?> (<?php echo Kohana::lang('unit_test.line') ?>&nbsp;<?php echo $result->getLine() ?>)
						</td>

					<?php endif ?>

				</tr>

			<?php endforeach ?>

		<?php endif ?>

	</table>

<?php endforeach ?>

</div>