Extends
lithium\test\Unit
Gets the executable line numbers of this file based on a manual entry of line ranges. Will
need to be updated manually if this method changes.
Returns
voidSource
public function testExecutableLines() {
do {
// These lines should be ignored
//
/* And these as well are ignored */
/**
* Testing never proves the absence of faults,
* it only shows their presence.
* - Dijkstra
*/
} while (false);
$result = Inspector::executable($this, array('methods' => __FUNCTION__));
$expected = array(__LINE__ - 1, __LINE__, __LINE__ + 1);
$this->assertEqual($expected, $result);
}