public function testInitialState()
 {
     $this->assertSame('Ivory\\GoogleMap\\Overlays\\Rectangle', $this->rectangleBuilder->getClass());
     $this->assertSame($this->boundBuilder, $this->rectangleBuilder->getBoundBuilder());
     $this->assertNull($this->boundBuilder->getPrefixJavascriptVariable());
     $this->assertEmpty($this->rectangleBuilder->getBound());
     $this->assertEmpty($this->rectangleBuilder->getOptions());
 }
 public function testSingleBuildWithValues()
 {
     $this->boundBuilder->setPrefixJavascriptVariable('foo')->setSouthWest(1, 2, true)->setNorthEast(3, 4, false);
     $this->assertSame('foo', $this->boundBuilder->getPrefixJavascriptVariable());
     $this->assertSame(array(1, 2, true), $this->boundBuilder->getSouthWest());
     $this->assertSame(array(3, 4, false), $this->boundBuilder->getNorthEast());
     $bound = $this->boundBuilder->build();
     $this->assertSame('foo', substr($bound->getJavascriptVariable(), 0, 3));
     $this->assertSame(1, $bound->getSouthWest()->getLatitude());
     $this->assertSame(2, $bound->getSouthWest()->getLongitude());
     $this->assertTrue($bound->getSouthWest()->isNoWrap());
     $this->assertSame(3, $bound->getNorthEast()->getLatitude());
     $this->assertSame(4, $bound->getNorthEast()->getLongitude());
     $this->assertFalse($bound->getNorthEast()->isNoWrap());
 }