Fabien Potencier
851eb73778
removed unused use statements
2011-10-29 11:56:30 +02:00
stloyd
edf4b87dcb
Add missing "tearDown" functions, and some missing variable declaration (this saves for me almost 20MB when run all tests)
...
Force AsseticBundle tests to use TestCase
Fix test for DoctrineBundle to use TestCase
2011-06-16 15:06:36 +02:00
stloyd
2b0c3526d8
Increase code coverage for: YamlParser, Validators, PhpEngine + Helpers, HttpFoundation
...
Revert failing asserts for UrlValidator
Mark as incomplete instead of commenting them out
2011-06-16 11:43:27 +02:00
Fabien Potencier
c7d5fd16e0
fixed CS
2011-06-15 13:46:46 +02:00
Victor Berchet
136b80ae63
[HttFoundation] Add File::getExtension() as \SplFileInfo::getExtension() was introduced in PHP 5.3.6
2011-06-14 18:18:43 +02:00
Victor Berchet
ac0c00c6e8
[HttpFoundation] Make File extends \SplFileInfo
2011-06-14 10:47:04 +02:00
Fabien Potencier
1e8cd6d34d
[HttpFoundation] removed the leading . for extensions
2011-06-09 12:42:42 +02:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Jordi Boggiano
5f569efed6
[HttpFoundation] Windows test fixes
2011-05-02 18:39:39 +02:00
Igor Wiedler
907e693350
[HttpFoundation] Fix FileException checking in FileTest
2011-04-29 22:48:38 +02:00
Fabien Potencier
00bfd10ca9
[HttpFoundation] refactored File management to be safer
2011-04-27 08:50:33 +02:00
Fabien Potencier
5bb9da4b6d
[HttpFoundation] renamed getDefaultExtension() to guessExtension()
...
The renamed method now returns null if it cannot guess the extension. It allows
the developper to know whether the extension has been guessed or not.
2011-04-27 08:03:19 +02:00
Fabien Potencier
aa3ec504ae
removed File::getWebPath()
...
This has been removed for several reasons:
* the framework does not know where the document root is and should not care
* as the document root was static, it was impossible to have several document roots depending on some business rules (see next one)
* sometimes, the document root is not under the web root directory (so the logic of getWebPath() is not always correct)
* the feature was not used anywhere in the core
2011-04-27 06:49:05 +02:00
Pascal Borreli
df3947019e
[HttpFoundation][Windows] Fixed test after removal of realpath 03bb3580a6
2011-04-22 20:49:07 +00: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
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
pborreli
f56a6efbf5
[HttpFoundation] File/File full coverage
2011-02-05 23:24:00 +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
Bernhard Schussek
8513082007
[Form][HttpFoundation] Improved File and UploadedFile class
2011-01-03 22:06:56 +01:00
Kris Wallsmith
3e02eafc70
Fixed visibility of PHPUnit setUp and tearDown methods.
2010-12-06 15:52:23 +01:00
Jordi Boggiano
7a255fe39f
[HttpFoundation] Fixed tests for windows
2010-11-18 06:59:12 +01:00
Bernhard Schussek
e9fcacdad7
[HttpFoundation] Fixed: File/UploadedFile did not adjust path when moved
2010-10-22 08:30:14 +02:00
Fabien Potencier
a141c98917
[HttpFoundation] moved File Component into the HttpFoundation one
2010-09-09 17:01:48 +02:00