assertFalse(empty($db)); $this->get('http://127.0.0.1/'); $this->assertResponse(200); $this->assertTitle("Shimmie Installation"); $this->assertText("Database Install"); $this->setField("database_type", $db); $this->assertField("database_host", "localhost"); if ($db === "mysql") { $this->setField("database_user", "root"); $this->setField("database_password", ""); } elseif ($db === "pgsql") { $this->setField("database_user", "postgres"); $this->setField("database_password", ""); } $this->assertField("database_name", "shimmie"); $this->clickSubmit("Go!"); if (!$this->assertTitle("Welcome to Shimmie")) { $this->showSource(); } $this->assertText("Welcome to Shimmie"); $this->assertText("This message will go away once your first image"); } }