public function testAddEntriesFromDictionary() { $emptyDict = RTMutableDictionary::dictionary(); $this->assertEquals(0, $emptyDict->count()); $emptyDict->addEntriesFromDictionary($this->dictionary); $this->assertEquals($this->dictionary->count(), $emptyDict->count()); }
/** Returns an array of dictionaries, each containing a 'path' and 'file' key. \returns RTDictionary */ public function recursivelyScanTarget() { if ($this->targetIsFile()) { throw new InvalidArgumentException("Target '" . $this->fullPathToTarget() . "' is a file and cannot be recursively scanned"); } $arr = RTMutableArray::anArray(); $this->_globDir($this->fullPathToTarget(), $arr); $results = RTMutableDictionary::dictionaryWithObject_forKey($arr, $this->fullPathToTarget()->lastPathComponent()); return $results; }