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