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

Class: tests_ParserPageGetSourceLocationTests

Source Location: /tests/ParserPageGetSourceLocationTests.php

Class Overview

PHPUnit_Framework_TestCase
   |
   --tests_ParserPageGetSourceLocationTests

Unit Testing of the ParserPage's getSourceLocation() method


Author(s):

  • Chuck Burgess

Methods



Class Details

[line 67]
Unit Testing of the ParserPage's getSourceLocation() method



Tags:

author:  Chuck Burgess
since:  1.4.0a1


[ Top ]


Class Methods


static method main [line 88]

static void main( )

Runs the test methods of this class.



Tags:

since:  1.4.0a1
access:  public


[ Top ]

method setUp [line 101]

void setUp( )

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

This method is called before a test is executed.




Tags:

since:  1.4.0a1
access:  protected


[ Top ]

method tearDown [line 116]

void tearDown( )

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

This method is called after a test is executed.




Tags:

since:  1.4.0a1
access:  protected


[ Top ]

method testWhenLocationNotSetAndPearizeFalse [line 148]

void testWhenLocationNotSetAndPearizeFalse( )

Shows correct behavior when

sourceLocation is not set yet with pearize explicitly false




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenLocationNotSetAndPearizeNull [line 139]

void testWhenLocationNotSetAndPearizeNull( )

Shows correct behavior when

sourceLocation is not set yet with no pearize value set




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenLocationNotSetAndPearizeTrue [line 157]

void testWhenLocationNotSetAndPearizeTrue( )

Shows correct behavior when

sourceLocation is not set yet with pearize explicitly true




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenNonPearLocationSetAndPearizeFalse [line 177]

void testWhenNonPearLocationSetAndPearizeFalse( )

Shows correct behavior when

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




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenNonPearLocationSetAndPearizeNull [line 167]

void testWhenNonPearLocationSetAndPearizeNull( )

Shows correct behavior when

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




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenNonPearLocationSetAndPearizeTrue [line 190]

void testWhenNonPearLocationSetAndPearizeTrue( )

Shows correct behavior when

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




Tags:

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 ]

method testWhenNonPearLocationSetIncludingDotsAndPearizeFalse [line 240]

void testWhenNonPearLocationSetIncludingDotsAndPearizeFalse( )

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

with pearize explicitly false




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenNonPearLocationSetIncludingDotsAndPearizeNull [line 231]

void testWhenNonPearLocationSetIncludingDotsAndPearizeNull( )

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

with pearize not set




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenNonPearLocationSetIncludingDotsAndPearizeTrue [line 252]

void testWhenNonPearLocationSetIncludingDotsAndPearizeTrue( )

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

with pearize explicitly true




Tags:

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 ]

method testWhenNonPearRelativeLocationSetAndPearizeFalse [line 271]

void testWhenNonPearRelativeLocationSetAndPearizeFalse( )

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

with pearize explicitly false




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenNonPearRelativeLocationSetAndPearizeNull [line 262]

void testWhenNonPearRelativeLocationSetAndPearizeNull( )

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

with pearize not set




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenNonPearRelativeLocationSetAndPearizeTrue [line 283]

void testWhenNonPearRelativeLocationSetAndPearizeTrue( )

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

with pearize explicitly false




Tags:

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 ]

method testWhenPearLocationSetAndPearizeFalse [line 211]

void testWhenPearLocationSetAndPearizeFalse( )

Show correct behavior when

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




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearLocationSetAndPearizeNull [line 201]

void testWhenPearLocationSetAndPearizeNull( )

Show correct behavior when

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




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearLocationSetAndPearizeTrue [line 221]

void testWhenPearLocationSetAndPearizeTrue( )

Show correct behavior when

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




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearLocationSetIncludingDotsAndPearizeFalse [line 302]

void testWhenPearLocationSetIncludingDotsAndPearizeFalse( )

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

with pearize explicitly false




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearLocationSetIncludingDotsAndPearizeNull [line 293]

void testWhenPearLocationSetIncludingDotsAndPearizeNull( )

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

with pearize not set




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearLocationSetIncludingDotsAndPearizeTrue [line 311]

void testWhenPearLocationSetIncludingDotsAndPearizeTrue( )

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

with pearize explicitly true




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearRelativeLocationSetAndPearizeFalse [line 330]

void testWhenPearRelativeLocationSetAndPearizeFalse( )

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

with pearize explicitly false




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearRelativeLocationSetAndPearizeNull [line 321]

void testWhenPearRelativeLocationSetAndPearizeNull( )

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

with pearize not set




Tags:

since:  1.4.0a1
access:  public


[ Top ]

method testWhenPearRelativeLocationSetAndPearizeTrue [line 339]

void testWhenPearRelativeLocationSetAndPearizeTrue( )

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

with pearize explicitly true




Tags:

since:  1.4.0a1
access:  public


[ Top ]

    Поддержать сайт на родительском проекте КГБ