예제 #1
0
 public function testCreateValues()
 {
     $node = new SdlTag(null, ["foo", "bar"]);
     $this->assertTrue($node instanceof SdlTag);
     $this->assertEquals(count($node->getValues()), 2);
     $this->assertEquals("foo", $node[0]);
     $this->assertEquals("bar", $node[1]);
     $this->assertEquals("foo", $node->getValue(0));
     $this->assertEquals("bar", $node->getValue(1));
 }