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

Commit

Permalink
Merge branch 'master' into hotfix/ZF-3821
Browse files Browse the repository at this point in the history
Conflicts:
	tests/Zend/InfoCard/XmlParsingTest.php
  • Loading branch information
Pádraic Brady committed Aug 26, 2011
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/CoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function testSetBackendCorrectCall2()
$this->_instance->setBackend($backend);
$log = $backend->getLastLog();
$this->assertEquals('setDirectives', $log['methodName']);
$this->assertType('array', $log['args'][0]);
$this->assertInternalType('array', $log['args'][0]);
}

public function testSetOptionCorrectCall()
Expand Down
14 changes: 13 additions & 1 deletion test/TestCommonBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,33 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Cache
*/
abstract class TestCommonBackend extends \PHPUnit_Framework_TestCase
abstract class TestCommonBackend extends \PHPUnit_Framework_TestCase
{

protected $_instance;
protected $_className;
protected $_root;

/**
* Stores the original set timezone
* @var string
*/
private $_originaltimezone;

public function __construct($name = null, array $data = array(), $dataName = '')
{
$this->_className = $name;
$this->_root = __DIR__;
$this->_originaltimezone = date_default_timezone_get();
date_default_timezone_set('UTC');
parent::__construct($name, $data, $dataName);
}

public function __destruct()
{
date_default_timezone_set($this->_originaltimezone);
}

public function setUp($notag = false)
{
$this->mkdir();
Expand Down

0 comments on commit aff3f5c

Please sign in to comment.