Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 /**
  * @return Address
  */
 public function createCatchallAddress()
 {
     if ($this->hasCatchallAddress()) {
         return $this->getCatchallAddress();
     }
     $address = new AddressImpl($this->container, '', $this);
     $address->create();
     $this->addInstance($address);
     return $address;
 }