/** * Tests setDefault * * @issue 2402 * @author Dmitry Patsura <*****@*****.**> * @since 2014-05-10 */ public function testDisplayValues() { $this->specify("setDefault does not assigns default values to generated tags by helpers", function () { Tag::setDefault('property1', 'testVal1'); Tag::setDefault('property2', 'testVal2'); Tag::setDefault('property3', 'testVal3'); expect(Tag::hasValue('property1'))->true(); expect(Tag::hasValue('property2'))->true(); expect(Tag::hasValue('property3'))->true(); expect(Tag::hasValue('property4'))->false(); expect(Tag::getValue('property1'))->equals('testVal1'); expect(Tag::getValue('property2'))->equals('testVal2'); expect(Tag::getValue('property3'))->equals('testVal3'); }); }