Igor Wiedler
82699c5a98
[HttpFoundation] add IPv6 support to Request
2011-04-22 17:07:44 +02:00
Igor Wiedler
18e9268112
[HttpFoundation] test Request::create with an IP as host name
2011-04-22 17:07:35 +02:00
Igor Wiedler
7815bbf3ea
[HttpFoundation] refactor Request::getClientIp test
2011-04-22 17:07:24 +02:00
Kris Wallsmith
30511d2965
[HttpFoundation] fixed FilesystemSessionStorage
2011-04-20 13:20:21 -07:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Fabien Potencier
5316decd8c
Merge remote branch 'hhamon/shared_maxage_fix'
...
* hhamon/shared_maxage_fix:
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 23:24:31 +02:00
Fabien Potencier
66c4bc727c
[HttpFoundation] renamed Cookie::getExpire() to getExpiresTime() to be consistent with the DomCrawler component
2011-04-13 20:10:39 +02:00
hhamon
053d83f557
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 15:58:48 +02:00
George Giannoulopoulos
81e1d4f11d
Refactoring, replace is_null() wuth null ===
2011-04-13 13:56:15 +02:00
Johannes Schmitt
408b94b968
[HttpFoundation] added some unit tests
2011-04-06 08:17:03 +02:00
Fabien Potencier
f77b94074f
[HttpFoundation] replaced the option argument of Session by defaultLocale
2011-03-30 17:26:13 +02:00
Pascal Borreli
0199b5c70d
[HttpFoundation][Windows] Fixed guesser tests if Fileinfo extension is not loaded
...
Didn't test for presence of mime_content_type function since it's obsolete (deprecated) in PHP5
2011-03-29 14:32:17 +00:00
Fabien Potencier
a6e6cbbb27
[HttpFoundation] removed the hardcoded ^ and $ from the RequestMatcher
2011-03-23 21:27:04 +01:00
Fabien Potencier
510c30693b
[HttpFoundation] fixed a test
2011-03-19 12:29:23 +01:00
Kris Wallsmith
ab3b8ac364
[HttpFoundation] cleaned up comments and coding standards, added better exception messages when filesystem functions throw errors, added "moved" arg to UploadedFile constructor, added FileNotFoundException to UploadedFile per the parent constructor
2011-03-17 16:07:53 -07:00
Kris Wallsmith
a5d8770a54
[HttpFoundation] fixed ApacheRequest, added tests
2011-03-16 06:13:01 -07:00
Fabien Potencier
bc6ffeef83
[HttpFoundation] fixed flash management
2011-03-11 20:23:17 +01:00
Jordi Boggiano
30a8f4fd42
[HttpFoundation] Fixed test breaking on windows
2011-03-09 17:26:11 +01:00
Jordi Boggiano
991b1ed225
[HttpFoundation] UploadedFile::getOriginalName is now overriding getName
2011-03-09 17:26:08 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Fabien Potencier
a137d72351
Merge remote branch 'hhamon/cookie_path_fix'
...
* hhamon/cookie_path_fix:
[Security] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[HttpKernel] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[BrowserKit] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[HttpFoundation] fix cookie path default value to / and added some new unit tests to cover the class
2011-03-06 10:44:40 +01:00
Fabien Potencier
487cddcfee
Merge remote branch 'DuoSRX/code-coverage'
...
* DuoSRX/code-coverage:
[HttpFoundation] Fixed a typo in response->setLastModified()
[HttpFoundation] Added some more tests on response
[HttpFoundation] Added some tests on Response
[HttpFoundation] Replace a duplicated test with a method in Response
Fixed code coverage generation when resources folder are deeper
2011-03-06 10:44:13 +01:00
Fabien Potencier
c02ebbf2d8
Merge remote branch 'digitalkaoz/httpkernel-datacollector'
...
* digitalkaoz/httpkernel-datacollector:
[HttpKernel] added Tests for DataCollectors
[HttpFoundation] more sophisticated checks for valid expiration
2011-03-06 10:38:55 +01:00
Xavier Perez
7900e8624f
[HttpFoundation] Added some more tests on response
2011-03-06 00:14:10 +01:00
Robert Schönthal
87e1359ebd
[HttpFoundation] more sophisticated checks for valid expiration
2011-03-06 00:13:47 +01:00
Xavier Perez
0327e93552
[HttpFoundation] Added some tests on Response
2011-03-05 16:12:17 +01:00
Robert Schönthal
3567fc4e6c
[HttpFoundation] added Session tests.
2011-03-05 13:32:36 +01:00
Cyril Quintin
1e4e899641
requestTest, override globals erase for the next tests. so backup it and restore it.
2011-03-05 12:11:21 +01:00
Hugo Hamon
ad56bd8e47
[HttpFoundation] fix cookie path default value to / and added some new unit tests to cover the class
2011-03-03 14:50:14 +01:00
Pascal Borreli
3a47fa6eed
[Tests] Fixed Typo
2011-03-01 18:58:08 +01:00
Kris Wallsmith
a0bae94f88
[HttpFoundation] updated ResponseHeaderBag to compute Cache-Control whenever any of the headers it considers changes
2011-02-21 19:57:05 -08:00
hhamon
f985da5a9c
[HttpFoundation] fix Cache-Control header when forcing the Response to have an Expires header field. The RFC2616 Bis indicates that if the Response has both max-age (or s-maxage) and Expires header field, the Cache-Control maxage wins over Expires. The previous code in ResponseHeaderBag always returned "private, max-age=0, must-revalidate" even if the Expires header field was forced.
...
This commit breaks functional tests in Symfony\Component\HttpKernel\HttpCache\HttpCacheTest.php. I tried to fix functional tests but I didn\'t manage to. For your information, the "try { } catch" block in the HttpKernel\HttpCache::lookup() method seems strange because I suspect line 274 to never leverage any exception...
2011-02-18 12:34:33 +01:00
Kris Wallsmith
ba239905d7
[HttpFoundation] removed unknown constructor arg from tests
2011-02-15 21:51:21 +01:00
Kris Wallsmith
ef43b22546
[HttpFoundation] fixed test cleanup
2011-02-08 04:14:39 +01:00
pborreli
41bf849a63
[HttpFoundation] Request coverage
2011-02-07 02:49:14 +01:00
pborreli
7ad4f99153
[HttpFoundation] File/UploadedFile, MimeTest, Exception full coverage
2011-02-06 21:53:36 +01:00
John Kary
c251a36935
[HttpFoundation] Add tests for Cookie
2011-02-06 16:16:05 +01:00
pborreli
f56a6efbf5
[HttpFoundation] File/File full coverage
2011-02-05 23:24:00 +01:00
Martijn Evers
1e3dc1479c
[Testing][HttpKernel] Added possibility to functional test raw body data
2011-02-04 13:07:13 +01:00
Victor Berchet
f470c5605e
[Request] Fix getting mime type
2011-01-30 20:14:40 +01:00
Fabien Potencier
98c1056fbf
renamed Request::fromGlobals() to Request::createFromGlobals() (for consistency with the existing create() method)
2011-01-27 21:20:08 +01:00
Kris Wallsmith
224e66f77b
[HttpFoundation] added static Request::fromGlobals()
...
The Request constructor no longer uses values from PHP's super globals. If you want a Request populated with these values you must use the new static method Request::fromGlobals().
Your front controllers (i.e. web/app.php, web/app_dev.php ...) will need to be updated:
// old
$kernel->handle(new Request())->send();
// new
$kernel->handle(Request::fromGlobals())->send();
2011-01-27 21:12:55 +01:00
Fabien Potencier
6997fbac0d
fixed previous commit
2011-01-27 13:58:21 +01:00
Fabien Pennequin
242562a361
[HttpFoundation] added test for processed array in sub-requests
2011-01-24 18:22:48 +01:00
Bulat Shakirzyanov
271e757f27
[HttFoundation] extracted FileBag, ServerBag, fixed HeaderBag::add(), updated Request test
2011-01-23 07:40:31 +01:00
Fabien Potencier
24ff22af07
[HttpFoundation] added a directory fallback for when the class is not found in registered namespaces and class prefixes
2011-01-20 10:20:14 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
hhamon
e2dc7f47cb
[HttpFoundation] use pathinfo() native function to determine file extension. Change File::move() and UploadedFile::move() methods to accept a second argument allowing to move the file with a new name instead of moving it with its original name.
2011-01-15 15:44:50 +01:00
umpirsky
0faf067acb
Fixed FileTest::testRename to work for windows file system.
2011-01-07 15:36:05 +01:00
Jordi Boggiano
025f3b1565
Fixed filesystem test failing on windows
2011-01-07 14:31:16 +01:00