lithium\tests\cases\analysis\InspectorTest::testExecutableLines PHP Метод

testExecutableLines() публичный Метод

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.
public testExecutableLines ( )
    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);
    }