NodeTest
extends TestCase
in package
Test for the the class representing a GraphViz node.
Table of Contents
- $fixture : Node
- testCall() : void
- Tests the magic __call method, to work as described, return the object instance for a setX method, return the value for an getX method, and null for the remaining method calls
- testConstruct() : void
- Tests the construct method
- testCreate() : void
- Tests the create method
- testGetNonExistingAttributeThrowsAttributeNotFound() : void
- testName() : void
- Tests the getting and setting of the name.
- testToString() : void
- Tests whether the magic __toString method returns a well formatted string as specified in the DOT standard
- testToStringWithLabelContainingSlashes() : void
- Tests whether the magic __toString method returns a well formatted string as specified in the DOT standard when the label contains slashes.
- setUp() : void
- Initializes the fixture for this test.
Properties
$fixture
protected
Node
$fixture
= null
Methods
testCall()
Tests the magic __call method, to work as described, return the object instance for a setX method, return the value for an getX method, and null for the remaining method calls
public
testCall() : void
Tags
Return values
void —testConstruct()
Tests the construct method
public
testConstruct() : void
Tags
Return values
void —testCreate()
Tests the create method
public
testCreate() : void
Tags
Return values
void —testGetNonExistingAttributeThrowsAttributeNotFound()
public
testGetNonExistingAttributeThrowsAttributeNotFound() : void
Tags
Return values
void —testName()
Tests the getting and setting of the name.
public
testName() : void
Tags
Return values
void —testToString()
Tests whether the magic __toString method returns a well formatted string as specified in the DOT standard
public
testToString() : void
Tags
Return values
void —testToStringWithLabelContainingSlashes()
Tests whether the magic __toString method returns a well formatted string as specified in the DOT standard when the label contains slashes.
public
testToStringWithLabelContainingSlashes() : void
Tags
Return values
void —setUp()
Initializes the fixture for this test.
protected
setUp() : void