PHP doesn't call it is_empty, but it does have is_null. Yay consistency.
This commit is contained in:
parent
f12b32b5d9
commit
cc88a33088
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
$options = getopt("d:");
|
||||
$db = $options["d"];
|
||||
|
||||
if (is_empty($db)){
|
||||
if (empty($db)){
|
||||
die("Error: need to specifiy a database for the test environment.");
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ class ShimmieSimpleTestCase extends WebTestCase {
|
|||
function testInstallShimmie()
|
||||
{
|
||||
// Make sure that we know what database to use.
|
||||
$this->assertFalse(is_empty($this->database));
|
||||
$this->assertFalse(empty($this->database));
|
||||
|
||||
$this->get('http://127.0.0.1/');
|
||||
$this->assertResponse(200);
|
||||
|
|
Reference in a new issue