Пример #1
0
 public function testPrePersistWithAutozoom()
 {
     $this->map->setCenter(-1.1, -2.2);
     $this->map->setBound(1, 2, 3, 4);
     $this->map->setAutoZoom(true);
     $this->map->prePersist();
     $this->assertNull($this->map->getCenter());
     $this->assertSame(1, $this->map->getBound()->getSouthWest()->getLatitude());
     $this->assertSame(2, $this->map->getBound()->getSouthWest()->getLongitude());
     $this->assertSame(3, $this->map->getBound()->getNorthEast()->getLatitude());
     $this->assertSame(4, $this->map->getBound()->getNorthEast()->getLongitude());
 }