tests
[ class tree: tests ] [ index: tests ] [ all elements ]

Class: Documentation_tests_ParserPageGetSourceLocationTests

Source Location: /PhpDocumentor-1.4.0RC1/Documentation/tests/ParserPageGetSourceLocationTests.php

Class Overview

PHPUnit_Framework_TestCase
   |
   --Documentation_tests_ParserPageGetSourceLocationTests

Unit Testing of the ParserPage's getSourceLocation() method


Author(s):

  • Chuck Burgess

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
Unit Testing of the ParserPage's getSourceLocation() method
  • Author: Chuck Burgess
  • Since: 1.4.0a1


[ Top ]


Method Detail

main   [line 77]

void main( )

Runs the test methods of this class.
  • Since: 1.4.0a1
  • Access: public

[ Top ]

setUp   [line 90]

void setUp( )

Sets up the fixture, for example, open a network connection.

This method is called before a test is executed.

  • Since: 1.4.0a1
  • Access: protected

[ Top ]

tearDown   [line 105]

void tearDown( )

Tears down the fixture, for example, close a network connection.

This method is called after a test is executed.

  • Since: 1.4.0a1
  • Access: protected

[ Top ]

testWhenLocationNotSetAndPearizeFalse   [line 137]

void testWhenLocationNotSetAndPearizeFalse( )

Shows correct behavior when

sourceLocation is not set yet with pearize explicitly false

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenLocationNotSetAndPearizeNull   [line 128]

void testWhenLocationNotSetAndPearizeNull( )

Shows correct behavior when

sourceLocation is not set yet with no pearize value set

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenLocationNotSetAndPearizeTrue   [line 146]

void testWhenLocationNotSetAndPearizeTrue( )

Shows correct behavior when

sourceLocation is not set yet with pearize explicitly true

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearLocationSetAndPearizeFalse   [line 166]

void testWhenNonPearLocationSetAndPearizeFalse( )

Shows correct behavior when

sourceLocation is set to an absolute path that is not a "pear" location, with pearize explicitly false

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearLocationSetAndPearizeNull   [line 156]

void testWhenNonPearLocationSetAndPearizeNull( )

Shows correct behavior when

sourceLocation is set to an absolute path that is not a "pear" location, with no pearize value set

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearLocationSetAndPearizeTrue   [line 179]

void testWhenNonPearLocationSetAndPearizeTrue( )

Shows correct behavior when

sourceLocation is set to an absolute path that is not a "pear" location, with pearize explicitly true

  • Todo: Revisit this test... I think it highlights a bug in the getSourceLocation method. Compare it with the same test in bug1574047.php against similar method parserClass->getSourceLocation().
  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearLocationSetIncludingDotsAndPearizeFalse   [line 229]

void testWhenNonPearLocationSetIncludingDotsAndPearizeFalse( )

Include a ".." in an absolute, non-PEAR path,

with pearize explicitly false

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearLocationSetIncludingDotsAndPearizeNull   [line 220]

void testWhenNonPearLocationSetIncludingDotsAndPearizeNull( )

Include a ".." in an absolute, non-PEAR path,

with pearize not set

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearLocationSetIncludingDotsAndPearizeTrue   [line 241]

void testWhenNonPearLocationSetIncludingDotsAndPearizeTrue( )

Include a ".." in an absolute, non-PEAR path,

with pearize explicitly true

  • Todo: Revisit this test... I think it highlights a bug in the getSourceLocation method. Compare it with the same test in bug1574047.php against similar method parserClass->getSourceLocation().
  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearRelativeLocationSetAndPearizeFalse   [line 260]

void testWhenNonPearRelativeLocationSetAndPearizeFalse( )

Include a ".." in a relative, non-PEAR path,

with pearize explicitly false

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearRelativeLocationSetAndPearizeNull   [line 251]

void testWhenNonPearRelativeLocationSetAndPearizeNull( )

Include a ".." in a relative, non-PEAR path,

with pearize not set

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenNonPearRelativeLocationSetAndPearizeTrue   [line 272]

void testWhenNonPearRelativeLocationSetAndPearizeTrue( )

Include a ".." in a relative, non-PEAR path,

with pearize explicitly false

  • Todo: Revisit this test... I think it highlights a bug in the getSourceLocation method. Compare it with the same test in bug1574047.php against similar method parserClass->getSourceLocation().
  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearLocationSetAndPearizeFalse   [line 200]

void testWhenPearLocationSetAndPearizeFalse( )

Show correct behavior when

sourceLocation is set to an absolute path that IS a "pear" location, with pearize explicitly false

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearLocationSetAndPearizeNull   [line 190]

void testWhenPearLocationSetAndPearizeNull( )

Show correct behavior when

sourceLocation is set to an absolute path that IS a "pear" location, with pearize not set

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearLocationSetAndPearizeTrue   [line 210]

void testWhenPearLocationSetAndPearizeTrue( )

Show correct behavior when

sourceLocation is set to an absolute path that IS a "pear" location, with pearize explicitly true

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearLocationSetIncludingDotsAndPearizeFalse   [line 291]

void testWhenPearLocationSetIncludingDotsAndPearizeFalse( )

Include a ".." in an absolute, PEAR path,

with pearize explicitly false

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearLocationSetIncludingDotsAndPearizeNull   [line 282]

void testWhenPearLocationSetIncludingDotsAndPearizeNull( )

Include a ".." in an absolute, PEAR path,

with pearize not set

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearLocationSetIncludingDotsAndPearizeTrue   [line 300]

void testWhenPearLocationSetIncludingDotsAndPearizeTrue( )

Include a ".." in an absolute, PEAR path,

with pearize explicitly true

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearRelativeLocationSetAndPearizeFalse   [line 319]

void testWhenPearRelativeLocationSetAndPearizeFalse( )

Include a ".." in a relative, PEAR path,

with pearize explicitly false

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearRelativeLocationSetAndPearizeNull   [line 310]

void testWhenPearRelativeLocationSetAndPearizeNull( )

Include a ".." in a relative, PEAR path,

with pearize not set

  • Since: 1.4.0a1
  • Access: public

[ Top ]

testWhenPearRelativeLocationSetAndPearizeTrue   [line 328]

void testWhenPearRelativeLocationSetAndPearizeTrue( )

Include a ".." in a relative, PEAR path,

with pearize explicitly true

  • Since: 1.4.0a1
  • Access: public

[ Top ]


Documentation generated on Mon, 25 Jun 2007 14:04:31 -0400 by phpDocumentor 1.3.2. PEAR Logo Copyright © PHP Group 2004.