Esempio n. 1
0
 public function testIfObjectImplementingInterfaceUsedInDictionaryCanBeAdded()
 {
     $dictionary = new Dictionary(Testable::class, Testable::class);
     $key = new TestType('key');
     $value = new TestType('value');
     $dictionary->add($key, $value);
     $this->assertTrue($dictionary->offsetExists($key));
 }