/** * @expectedException \tomi20v\phalswag\Exception\InvalidKeyException */ public function testShouldThrowOnInvalidKey() { $TestableItem = TestableItem::getExample(); $Collection = new TestableCollection(new Config([$TestableItem])); $Collection->__get('Asd'); }
public function testCurrentReturnsNullOnInvalid() { $TestableItem = TestableItem::getExample(); $TestableItem->next(); $TestableItem->next(); $this->assertNull($TestableItem->current()); }