PHP Class Tests\Simple\CodeSmell\InfinityWhileLoop

Show file Open project: ovr/phpsa

Public Methods

Method Description
testEmptyBody1 ( ) : boolean
testInfinityEmptyWhileLoop1 ( ) : boolean
testInfinityEmptyWhileLoop2 ( ) : boolean
testInfinityEmptyWhileLoop3 ( ) : boolean
testInfinityEmptyWhileLoopAlwaysTrueExpr ( ) : boolean
testNotInfinityEmptyWhileLoop3 ( ) : boolean
testSuccess1 ( ) : boolean

Protected Methods

Method Description
alwaysTrue ( ) : boolean

Method Details

alwaysTrue() protected method

protected alwaysTrue ( ) : boolean
return boolean

testEmptyBody1() public method

public testEmptyBody1 ( ) : boolean
return boolean

testInfinityEmptyWhileLoop1() public method

testInfinityEmptyWhileLoop2() public method

testInfinityEmptyWhileLoop3() public method

testInfinityEmptyWhileLoopAlwaysTrueExpr() public method

testNotInfinityEmptyWhileLoop3() public method

testSuccess1() public method

public testSuccess1 ( ) : boolean
return boolean