public function testAddImports() { $this->class->addImport($iterator = new Import('IteratorAggregate')); $this->class->addImports(array($countable = new Import('Countable'), $arrayAccess = new Import('ArrayAccess'))); $this->assertSame(array('ArrayAccess' => $arrayAccess, 'Countable' => $countable, 'IteratorAggregate' => $iterator), $this->class->getImports()); }