public function testSetUrlFormat() { $request = new THttpRequest(); $request->setUrlFormat('Path'); self::assertEquals('Path', $request->getUrlFormat()); // Test invalid try { $request->setUrlFormat('Bad'); self::fail('Bad Value exception not thrown'); } catch (TInvalidDataValueException $e) { } }