Пример #1
0
 /**
  * @depends testAddEntry
  */
 public function testGetEntry()
 {
     $Type = new Type(self::TYPE);
     foreach ($Type->getEntries() as $Entry) {
         $this->assertEquals(self::NAME, $Entry->name);
     }
     $Entry = new Entry(9999999);
 }
Пример #2
0
 /**
  * Get this as an associative array
  * @since Version 3.9.1
  * @return array
  */
 public function getArray()
 {
     return array("id" => $this->id, "name" => $this->name, "text" => $this->text, "example" => $this->example, "type" => $this->Type->getArray(), "url" => $this->url->getURLs());
 }