PHP Class Phan\Tests\Language\UnionTypeTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: etsy/phan

Protected Properties

Property Type Description
$code_base Phan\CodeBase
$context Phan\Language\Context | null

Public Methods

Method Description
testArrayEmpty ( )
testArrayMixed ( )
testArrayUniform ( )
testGenericArrayType ( )
testGenericArrayTypeFromString ( )
testInt ( )
testInternalObject ( )
testString ( )

Protected Methods

Method Description
setUp ( )
tearDown ( )

Private Methods

Method Description
assertUnionTypeStringEqual ( string $code_stub, string $type_name ) Assert that a piece of code produces a type with the given name
typeStringFromCode ( string $code ) : string

Method Details

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

testArrayEmpty() public method

public testArrayEmpty ( )

testArrayMixed() public method

public testArrayMixed ( )

testArrayUniform() public method

public testArrayUniform ( )

testGenericArrayType() public method

testGenericArrayTypeFromString() public method

testInt() public method

public testInt ( )

testInternalObject() public method

public testInternalObject ( )

testString() public method

public testString ( )

Property Details

$code_base protected property

protected CodeBase,Phan $code_base
return Phan\CodeBase

$context protected property

protected Context,Phan\Language|null $context
return Phan\Language\Context | null