コード例 #1
0
ファイル: ResourceTest.php プロジェクト: nhukhanhdl/easyrdf
 public function testGetNodeId()
 {
     $bnode = new EasyRdf_Resource('_:foobar');
     $this->assertEquals('foobar', $bnode->getNodeId());
 }
コード例 #2
0
 public function testGetNodeIdForUri()
 {
     $nonbnode = new EasyRdf_Resource('http://www.exaple.com/');
     $this->assertSame(NULL, $nonbnode->getNodeId());
 }