public function testInit() { $container = new Container(); $dao = new Dao($container); $this->assertInstanceOf('Phrozn\\Registry\\Container', $container); $this->assertSame($container, $dao->getContainer()); // test project path setting $this->assertNull($dao->getProjectPath()); $projectPath = dirname(__FILE__) . '/../project/'; $dao->setProjectPath($projectPath); $this->assertSame(realpath($projectPath . '/.phrozn'), $dao->getProjectPath()); // test output file $this->assertSame('.registry', $dao->getOutputFile()); $this->assertSame('.bundles', $dao->setOutputFile('.bundles')->getOutputfile()); }