Skip to content

Commit

Permalink
Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Aug 2, 2013
1 parent b59c33d commit 1b2f780
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions unit-tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,12 @@ public function testConfigWithMergeAndGarbageCollection()
$config->merge(new Phalcon\Config(array('test2')));
gc_collect_cycles();
}

public function testIssue980()
{
$a = new Phalcon\Config(array('aaa' => array('b' => 2, 'c' => 3)));
$s = serialize($a);
$b = unserialize($s);
$this->assertEquals($a, $b);
}
}

0 comments on commit 1b2f780

Please sign in to comment.