|
@@ -0,0 +1,170 @@
|
|
|
+<?php
|
|
|
+namespace OSInet\Class_Grapher;
|
|
|
+
|
|
|
+require_once 'OSInet/Class_Grapher/Graph.php';
|
|
|
+require_once 'PHPUnit/Framework/TestCase.php';
|
|
|
+
|
|
|
+
|
|
|
+ * Graph test case.
|
|
|
+ */
|
|
|
+class GraphTest extends \PHPUnit_Framework_TestCase {
|
|
|
+
|
|
|
+
|
|
|
+ *
|
|
|
+ * @var Graph
|
|
|
+ */
|
|
|
+ private $Graph;
|
|
|
+
|
|
|
+
|
|
|
+ * Prepares the environment before running a test.
|
|
|
+ */
|
|
|
+ protected function setUp() {
|
|
|
+ parent::setUp();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $this->Graph = new Graph();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Cleans up the environment after running a test.
|
|
|
+ */
|
|
|
+ protected function tearDown() {
|
|
|
+
|
|
|
+
|
|
|
+ $this->Graph = null;
|
|
|
+
|
|
|
+ parent::tearDown();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Constructs the test case.
|
|
|
+ */
|
|
|
+ public function __construct() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->attributes()
|
|
|
+ */
|
|
|
+ public function testAttributes() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("attributes test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->attributes();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->debug()
|
|
|
+ */
|
|
|
+ public function testDebug() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("debug test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->debug();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->getFiles()
|
|
|
+ */
|
|
|
+ public function testGetFiles() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("getFiles test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->getFiles();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->initGraph()
|
|
|
+ */
|
|
|
+ public function testInitGraph() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("initGraph test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->initGraph();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->registerClass()
|
|
|
+ */
|
|
|
+ public function testRegisterClass() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("registerClass test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->registerClass();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->registerInterface()
|
|
|
+ */
|
|
|
+ public function testRegisterInterface() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("registerInterface test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->registerInterface();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->extractGrammar()
|
|
|
+ */
|
|
|
+ public function testExtractGrammar() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("extractGrammar test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->extractGrammar();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->__construct()
|
|
|
+ */
|
|
|
+ public function test__construct() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("__construct test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->__construct();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->implementsAttributes()
|
|
|
+ */
|
|
|
+ public function testImplementsAttributes() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("implementsAttributes test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->implementsAttributes();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->buildSymbols()
|
|
|
+ */
|
|
|
+ public function testBuildSymbols() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("buildSymbols test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->buildSymbols();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * Tests Graph->build()
|
|
|
+ */
|
|
|
+ public function testBuild() {
|
|
|
+
|
|
|
+ $this->markTestIncomplete("build test not implemented");
|
|
|
+
|
|
|
+ $this->Graph->build();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|