technosophos/querypath — pull request #126 by noisan (2013-10-01 08:15:02+00:00)
Title: DOMQuery::text() does not work as intended

Hi!

I'm not sure whether this is a bug or I am doing something wrong.

When using the text() method to set text contents of all matched elements,
I get the following result:

Test script:
```php

Text A

Text B

';
qp($xml, 'div')->text('New Text')->writeXML();
```

Expected result:
```xml

New Text

New Text

```

Actual result:
```xml

New Text

```

This Pull Request fixes this behavior and adds an unit test for it.