Documentation

GraphTest extends PHPUnit_Framework_TestCase
in package

Test the parsing of a JSON-LD document into a Graph.

Tags
author

Markus Lanthaler mail@markus-lanthaler.com

Table of Contents

Properties

$documentLoader  : mixed
The document loader used to parse expected values.
$graph  : GraphInterface
The graph instance being used throughout the tests.

Methods

testAddInvalidPropertyValue()  : mixed
Tests whether it is possible to add invalid values
testAddTypeNotInGraph()  : mixed
Tests whether it is possible to add an type which is not part of the graph
testContains()  : mixed
Tests whether nodes are contained in the graph
testCreateExistingNode()  : mixed
Tests whether creating an existing node returns the instance of that node
testGetNodes()  : mixed
Tests whether all nodes are returned and blank nodes are renamed accordingly.
testMerge()  : mixed
Tests the merging of two graphs
testNodeIsBlankNode()  : mixed
Tests isBlankNode()
testNodePropertyUniqueness()  : mixed
Tests if adding a value maintains uniqueness
testNodeRelationships()  : mixed
Tests whether all nodes are interlinked correctly.
testNodeRemoval()  : mixed
Tests the removal of nodes from the graph.
testNodeReverseRelationships()  : mixed
Tests whether all nodes also have the correct reverse links.
testNodeReverseRelationshipsUpdated()  : mixed
Tests if reverse node relationships are updated when a property is updated.
testNodeTypeRemoval()  : mixed
Tests the removal of node types from the graph.
testSerializeGraph()  : mixed
Tests the serialization of graphs
testSerializeNode()  : mixed
Tests the serialization of nodes
testSetInvalidTypeArray()  : mixed
Tests whether it is possible to set the node's type to an invalid value when an array is used.
testSetInvalidTypeValue()  : mixed
Tests whether it is possible to set the node's type to an invalid value
setUp()  : mixed
Create the graph to test.

Properties

$documentLoader

The document loader used to parse expected values.

protected mixed $documentLoader

Methods

testAddInvalidPropertyValue()

Tests whether it is possible to add invalid values

public testAddInvalidPropertyValue() : mixed
Tags
expectedException

InvalidArgumentException

testAddTypeNotInGraph()

Tests whether it is possible to add an type which is not part of the graph

public testAddTypeNotInGraph() : mixed
Tags
expectedException

InvalidArgumentException

testContains()

Tests whether nodes are contained in the graph

public testContains() : mixed

testCreateExistingNode()

Tests whether creating an existing node returns the instance of that node

public testCreateExistingNode() : mixed

testGetNodes()

Tests whether all nodes are returned and blank nodes are renamed accordingly.

public testGetNodes() : mixed

testMerge()

Tests the merging of two graphs

public testMerge() : mixed

testNodeIsBlankNode()

Tests isBlankNode()

public testNodeIsBlankNode() : mixed

testNodePropertyUniqueness()

Tests if adding a value maintains uniqueness

public testNodePropertyUniqueness() : mixed

testNodeRelationships()

Tests whether all nodes are interlinked correctly.

public testNodeRelationships() : mixed

testNodeRemoval()

Tests the removal of nodes from the graph.

public testNodeRemoval() : mixed

testNodeReverseRelationships()

Tests whether all nodes also have the correct reverse links.

public testNodeReverseRelationships() : mixed

testNodeReverseRelationshipsUpdated()

Tests if reverse node relationships are updated when a property is updated.

public testNodeReverseRelationshipsUpdated() : mixed

testNodeTypeRemoval()

Tests the removal of node types from the graph.

public testNodeTypeRemoval() : mixed

testSerializeGraph()

Tests the serialization of graphs

public testSerializeGraph() : mixed

testSerializeNode()

Tests the serialization of nodes

public testSerializeNode() : mixed

testSetInvalidTypeArray()

Tests whether it is possible to set the node's type to an invalid value when an array is used.

public testSetInvalidTypeArray() : mixed
Tags
expectedException

InvalidArgumentException

testSetInvalidTypeValue()

Tests whether it is possible to set the node's type to an invalid value

public testSetInvalidTypeValue() : mixed
Tags
expectedException

InvalidArgumentException

setUp()

Create the graph to test.

protected setUp() : mixed

        
On this page

Search results