Exemple #1
0
 public function testNamespacesWithName()
 {
     $test = new SdlTag("foo:test");
     $this->assertEquals("test", $test->getName());
     $this->assertEquals("foo", $test->getNamespace());
     $this->assertEquals("foo:test", $test->getNameNs());
     $test->setNamespace("bar");
     $this->assertEquals("bar", $test->getNamespace());
     $this->assertEquals("bar:test", $test->getNameNs());
     $test->setName("arf");
     $this->assertEquals("bar", $test->getNamespace());
     $this->assertEquals("bar:arf", $test->getNameNs());
     $test->setNamespace(null);
     $this->assertEquals(null, $test->getNamespace());
     $this->assertEquals(":arf", $test->getNameNs());
 }