コード例 #1
0
ファイル: DictionaryTest.php プロジェクト: dpolac/dictionary
 public function testCount()
 {
     $d = new Dictionary();
     $this->assertEquals(0, $d->count());
     $d[1] = 12;
     $d[true] = new \stdClass();
     $d[false] = new \stdClass();
     $d['false'] = 'abc';
     $d[(string) '1'] = 'def';
     $d[null] = 13;
     $d[new \stdClass()] = 1;
     $this->assertEquals(7, $d->count());
 }