public function testClearImports() { $this->class->addImport(new Import('IteratorAggregate')); $this->class->addImport(new Import('Countable')); $this->class->clearImports(); $this->assertSame(array(), $this->class->getImports()); }