public function testCreateWillUpdateTimes() { $this->assertEquals(0, $this->nonExistingAddress->lastModified()); $this->assertEquals(0, $this->nonExistingAddress->createdAt()); $this->nonExistingAddress->create(); $this->assertGreaterThan(0, $this->nonExistingAddress->lastModified()); $this->assertGreaterThan(0, $this->nonExistingAddress->createdAt()); }
/** * @return Address */ public function createCatchallAddress() { if ($this->hasCatchallAddress()) { return $this->getCatchallAddress(); } $address = new AddressImpl($this->container, '', $this); $address->create(); $this->addInstance($address); return $address; }