public function CollectionTest::testIssetAndUnset in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Doctrine\Tests\Common\CollectionsCode
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]));
}