/** * @todo Implement testGetId(). */ public function testGetId() { $bn = Erfurt_Rdf_Resource::initWithBlankNode('bnode123abcdefghjiklmnopqrstuvwxyz'); $this->assertEquals('bnode123abcdefghjiklmnopqrstuvwxyz', $bn->getId()); }
protected function _createBNode($id = null) { if (null === $id) { while (true) { $id = self::BNODE_PREFIX . ++$this->_bnodeCounter; if (!isset($this->_usedBnodeIds[$id])) { break; } } } $this->_usedBnodeIds[$id] = true; require_once 'Erfurt/Rdf/Resource.php'; return Erfurt_Rdf_Resource::initWithBlankNode($id); }