PHP Class Tests\Simple\CodeSmell\Cast

Show file Open project: ovr/phpsa

Public Methods

Method Description
testAssignCastBooleanFalse ( ) : boolean | integer
testCastBooleanFalse ( ) : boolean
testCastBooleanFromEqualStaticCondition ( ) : boolean
testCastBooleanTrue ( ) : boolean
testCastFloatFromBooleanFalse ( ) : float
testCastFloatFromBooleanTrue ( ) : float
testCastFloatFromEmptyString ( ) : float
testCastFloatFromFloat ( ) : float
testCastFloatFromInt ( ) : float
testCastFloatFromString ( ) : float
testCastIntFromBooleanFalse ( ) : integer
testCastIntFromBooleanTrue ( ) : integer
testCastIntFromEmptyString ( ) : integer
testCastIntFromFloat ( ) : integer
testCastIntFromInt ( ) : integer
testCastIntFromString ( ) : integer
testCastStringFromBooleanFalse ( ) : string
testCastStringFromBooleanTrue ( ) : string
testCastStringFromEmptyString ( ) : string
testCastStringFromFloat ( ) : string
testCastStringFromInt ( ) : string
testCastStringFromString ( ) : string
testCastUnsetFromBooleanFalse ( ) : null
testCastUnsetFromBooleanTrue ( ) : null
testCastUnsetFromNull ( ) : null

Method Details

testAssignCastBooleanFalse() public method

testCastBooleanFalse() public method

public testCastBooleanFalse ( ) : boolean
return boolean

testCastBooleanFromEqualStaticCondition() public method

testCastBooleanTrue() public method

public testCastBooleanTrue ( ) : boolean
return boolean

testCastFloatFromBooleanFalse() public method

testCastFloatFromBooleanTrue() public method

testCastFloatFromEmptyString() public method

testCastFloatFromFloat() public method

public testCastFloatFromFloat ( ) : float
return float

testCastFloatFromInt() public method

public testCastFloatFromInt ( ) : float
return float

testCastFloatFromString() public method

public testCastFloatFromString ( ) : float
return float

testCastIntFromBooleanFalse() public method

testCastIntFromBooleanTrue() public method

testCastIntFromEmptyString() public method

testCastIntFromFloat() public method

public testCastIntFromFloat ( ) : integer
return integer

testCastIntFromInt() public method

public testCastIntFromInt ( ) : integer
return integer

testCastIntFromString() public method

public testCastIntFromString ( ) : integer
return integer

testCastStringFromBooleanFalse() public method

testCastStringFromBooleanTrue() public method

testCastStringFromEmptyString() public method

testCastStringFromFloat() public method

public testCastStringFromFloat ( ) : string
return string

testCastStringFromInt() public method

public testCastStringFromInt ( ) : string
return string

testCastStringFromString() public method

public testCastStringFromString ( ) : string
return string

testCastUnsetFromBooleanFalse() public method

testCastUnsetFromBooleanTrue() public method

public testCastUnsetFromBooleanTrue ( ) : null
return null

testCastUnsetFromNull() public method

public testCastUnsetFromNull ( ) : null
return null