Ejemplo n.º 1
0
 /**
  * @param string $name
  * @param array $attributes
  * @param bool $directed
  * @param bool $strict
  *
  * @return $this
  */
 public function create($name, array $attributes = [], $directed = true, $strict = true)
 {
     $this->graph = $this->createPhpDocumentorGraph();
     $this->graph->setName($name);
     $type = $this->getType($directed);
     $this->graph->setType($type);
     $this->graph->setStrict($strict);
     $this->addAttributesTo($attributes, $this->graph);
     return $this;
 }
 public function testIsStrict()
 {
     $this->assertSame($this->fixture->isStrict(), false);
     $this->fixture->setStrict(true);
     $this->assertSame($this->fixture->isStrict(), true);
 }