#5938: assertTags fails when testing for presence of empty property
---------------------------+------------------------------------------------
Reporter: freenity | Owner:
Type: Bug | Status: closed
Priority: High | Milestone: 1.2.x.x
Component: Test Suite | Version: 1.2 Final
Severity: Major | Resolution: invalid
Keywords: | Php_version: n/a
Cake_version: |
---------------------------+------------------------------------------------
Comment (by mark_story):
Infact I have looked at the test you mentioned because I wrote it. So its
safe to say I have seen it. Furthermore, the
{{{assertTrue(assertTags())}}} you reference are used to check the return
of {{{assertTags()}}}. In the rest of the core tests {{{assertTags()}}} is
not wrapped by an {{{assertTrue()}}}, as {{{assertTags()}}} makes its own
assertion to the test reporter. This is not the case with the test case
cited, but you would know that because you read and understood the whole
test.
[[BR]]
[[BR]]
I still don't feel this is a '''bug'''. As assertTags() works just fine
as designed. It was designed to only take attribute=value pairs. Not
accept valueless attributes. And if you don't care what the value is of
an attribute then you can declare that with a {{{preg:/.*/}}}. Again you
can find examples of this in the core tests.
--
Ticket URL: <https://trac.cakephp.org/ticket/5938#comment:5>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---