We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f9c31 commit 69e3e66Copy full SHA for 69e3e66
1 file changed
tests/JsonTest.php
@@ -816,6 +816,19 @@ public function testAdd08() {
816
.'{"property-00":"p0","property-01":"p1","property-02":"p2"}]]]'
817
.'}',$j->toJSONString());
818
}
819
+ /**
820
+ * @test
821
+ */
822
+ public function testAdd09() {
823
+ $j = new Json();
824
+ $j->add('one', 'one');
825
+ $this->assertEquals(1, count($j->getPropsNames()));
826
+ $j->add('two', 'two');
827
+ $this->assertEquals(2, count($j->getPropsNames()));
828
+ $j->add('one', 'not one');
829
830
+ $this->assertEquals('not one', $j->get('one'));
831
+ }
832
/**
833
* @test
834
*/
0 commit comments