This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component
Fabien Potencier 5ec6b2a050 merged branch kosssi/bugfix/css-selector-empty (PR #6271)
This PR was squashed before being merged into the 2.0 branch (closes #6271).

Commits
-------

dbafc2c [CssSelector] added css selector with empty string

Discussion
----------

[CssSelector] added css selector with empty string

---------------------------------------------------------------------------

by kosssi at 2012-12-14T18:29:40Z

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
License of the code: MIT

---------------------------------------------------------------------------

by stloyd at 2013-01-07T08:21:56Z

@fabpot ping

---------------------------------------------------------------------------

by fabpot at 2013-01-07T10:28:54Z

Sorry, but I don't understand the use case.

---------------------------------------------------------------------------

by kosssi at 2013-01-07T10:36:31Z

if you have this code :
    \<img src="..." alt="">

you can find
    $this->assertCount(1, $crawler->filter('img[alt=""]'));

---------------------------------------------------------------------------

by fabpot at 2013-01-07T10:40:12Z

Then, can you change the unit test with the real use case?

---------------------------------------------------------------------------

by kosssi at 2013-01-07T11:05:50Z

I don't know if it suits you

---------------------------------------------------------------------------

by fabpot at 2013-01-07T11:07:11Z

thanks
2013-01-07 12:07:21 +01:00
..
BrowserKit fixed CS 2012-03-11 17:59:42 +01:00
ClassLoader [ClassLoader] fixed unbracketed namespaces (closes #5747) 2012-10-27 17:55:46 +02:00
Config [Config] Loader::import must return imported data 2012-12-07 14:24:02 +01:00
Console Show correct class name InputArgument in error message 2012-11-05 14:52:03 -05:00
CssSelector [CssSelector] added css selector with empty string 2013-01-07 12:07:20 +01:00
DependencyInjection [DependencyInjection] refactored code to avoid logic duplication 2013-01-06 08:52:07 +01:00
DomCrawler Update src/Symfony/Component/DomCrawler/Tests/FormTest.php 2012-11-19 13:41:38 +01:00
EventDispatcher [EventDispatcher] Fixed E_NOTICES with multiple eventnames per subscriber with mixed priorities 2012-04-12 15:56:02 +05:45
Finder fixed CS (mainly method signatures) 2012-07-09 14:43:50 +02:00
Form [Locale] fixed tests 2012-12-05 14:13:56 +01:00
HttpFoundation fixed CS 2012-12-11 11:27:06 +01:00
HttpKernel Add check to Store::unlock to ensure file exists 2012-08-29 16:45:40 +10:00
Locale [Locale] Fix failing StubIntlDateFormatter tests in PHP 5.5 2013-01-04 14:10:03 +01:00
Process [Process] fix ProcessTest::testProcessPipes hangs on Windows on branch 2.0 2012-08-25 23:29:32 +04:00
Routing prevents injection of malicious doc types 2012-08-28 08:43:14 +02:00
Security [Security] remove escape charters from username provided by Digest DigestAuthenticationListener 2012-11-15 16:54:04 +01:00
Serializer refined previous commit 2012-08-28 08:43:14 +02:00
Templating fixed CS (mainly method signatures) 2012-07-09 14:43:50 +02:00
Translation prevents injection of malicious doc types 2012-08-28 08:43:14 +02:00
Validator prevents injection of malicious doc types 2012-08-28 08:43:14 +02:00
Yaml fixed CS (mainly method signatures) 2012-07-09 14:43:50 +02:00