You are here

public function CollectionTest::testIssetAndUnset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php \Doctrine\Tests\Common\Collections\CollectionTest::testIssetAndUnset()

File

vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php, line 21

Class

CollectionTest

Namespace

Doctrine\Tests\Common\Collections

Code

public function testIssetAndUnset() {
  $this
    ->assertFalse(isset($this->collection[0]));
  $this->collection
    ->add('testing');
  $this
    ->assertTrue(isset($this->collection[0]));
  unset($this->collection[0]);
  $this
    ->assertFalse(isset($this->collection[0]));
}