Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fix PHPUnit 3.6 deprecation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
postalservice14 committed Aug 17, 2011
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ public function testToArraySupportsObjects()
);
$config = new Config($configData);
$this->assertEquals($config->toArray(), $configData);
$this->assertType('stdClass', $config->a);
$this->assertType('stdClass', $config->b->c);
$this->assertType('stdClass', $config->b->d);
$this->assertInternalType('object', $config->a);
$this->assertInternalType('object', $config->b->c);
$this->assertInternalType('object', $config->b->d);
}

/**
Expand Down
10 changes: 5 additions & 5 deletions test/IniTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,21 @@ public function testTrueValues()
{
$config = new Ini($this->_iniFileConfig, 'debug');

$this->assertType('string', $config->debug);
$this->assertInternalType('string', $config->debug);
$this->assertEquals('1', $config->debug);
$this->assertType('string', $config->values->changed);
$this->assertInternalType('string', $config->values->changed);
$this->assertEquals('1', $config->values->changed);
}

public function testEmptyValues()
{
$config = new Ini($this->_iniFileConfig, 'debug');

$this->assertType('string', $config->special->no);
$this->assertInternalType('string', $config->special->no);
$this->assertEquals('', $config->special->no);
$this->assertType('string', $config->special->null);
$this->assertInternalType('string', $config->special->null);
$this->assertEquals('', $config->special->null);
$this->assertType('string', $config->special->false);
$this->assertInternalType('string', $config->special->false);
$this->assertEquals('', $config->special->false);
}

Expand Down

0 comments on commit fbaa5aa

Please sign in to comment.