Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Show actual contents on assert*QueryContentContains #6296

Closed

Conversation

scroach
Copy link
Contributor

@scroach scroach commented May 20, 2014

I wrote some unit tests for my current project and found that it was quite difficult to write and test content assertions of specific nodes in the DOM.

The problem is that there are no indicators of what the contents of matches nodes really were - so I added them to the error message of the assertion.

The difference of the output is shown in the following screenshot of a unit test in Netbeans:

2014-05-20_13-38-41

@Ocramius
Copy link
Member

Manually merged at @83426502a5dc0bbc8a3007b768e308a96a30fc8f

@Ocramius Ocramius closed this Jul 27, 2014
freax pushed a commit to freax/zf2 that referenced this pull request Nov 27, 2014
gianarb pushed a commit to zendframework/zend-test that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-test that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants