Пример #1
0
 public function testPassWithoutIcon()
 {
     self::assertArrayNotHasKey('icon', $this->pass->getImages(), 'pass must not have an icon for test to be valid');
     $this->assertFails($this->pass, PassValidator::ICON_REQUIRED);
     $icon = new Image(__DIR__ . '/../../img/icon.png', 'icon');
     $this->pass->addImage($icon);
     $this->assertPasses($this->pass, PassValidator::ICON_REQUIRED);
 }