public function testMultipleBuildWithReset() { $this->boundBuilder->setPrefixJavascriptVariable('foo')->setSouthWest(1, 2, true)->setNorthEast(3, 4, false); $bound1 = $this->boundBuilder->build(); $this->boundBuilder->reset(); $bound2 = $this->boundBuilder->build(); $this->assertSame('foo', substr($bound1->getJavascriptVariable(), 0, 3)); $this->assertSame(1, $bound1->getSouthWest()->getLatitude()); $this->assertSame(2, $bound1->getSouthWest()->getLongitude()); $this->assertTrue($bound1->getSouthWest()->isNoWrap()); $this->assertSame(3, $bound1->getNorthEast()->getLatitude()); $this->assertSame(4, $bound1->getNorthEast()->getLongitude()); $this->assertFalse($bound1->getNorthEast()->isNoWrap()); $this->assertSame('bound_', substr($bound2->getJavascriptVariable(), 0, 6)); $this->assertFalse($bound2->hasCoordinates()); }