コード例 #1
0
ファイル: DictionaryTest.php プロジェクト: dpolac/dictionary
 /**
  * @dataProvider getOffsets
  */
 public function testArrayAccess($offset)
 {
     $d = new Dictionary();
     $this->assertFalse($d->offsetExists($offset));
     $d->offsetSet($offset, 34);
     $this->assertTrue($d->offsetExists($offset));
     $this->assertEquals(34, $d->offsetGet($offset));
     $d->offsetUnset($offset);
     $this->assertFalse($d->offsetExists($offset));
 }