public function testConstructor() { $c = new Generator('TestClass.php', Generator::CREATE_CLASS); $c = new Generator('TestInterface.php', Generator::CREATE_INTERFACE); $c = new Generator(__FILE__); $c->setClose(true); $this->assertInstanceOf('Pop\\Code\\Generator', $c); }