/** * Checks the isValid method */ public function testIsValid() { $this->assertFalse(self::$directionsWaypoint->isValid()); self::$directionsWaypoint->setLocation('foo'); $this->assertTrue(self::$directionsWaypoint->isValid()); }