summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2013-04-06 12:38:38 -0500
committerMatt Butcher <[email protected]>2013-04-06 12:38:38 -0500
commit87f4c66f006e62789611b2128a90588761395586 (patch)
treeeda5a77140fbc3b9617ae51dfb2a0a1cc5d602d4 /src
parenta0369b76a009c9961bc2dc5fbf9ad9189711100a (diff)
Beginnings of PHPUnit tests.
Replacing SimpleTest with PHPUnit.
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Serializer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTML5/Serializer.php b/src/HTML5/Serializer.php
index 207f848..e31bbbe 100644
--- a/src/HTML5/Serializer.php
+++ b/src/HTML5/Serializer.php
@@ -63,7 +63,7 @@ class Serializer {
// faster than writing directly to a string, but it makes the interface
// consistant and will keep memory consumption lower (2MB max for the file
// buffer).
- $stream = fopen('php://temp');
+ $stream = fopen('php://temp', 'w');
$this->save($stream);
return stream_get_contents($stream, -1, 0);
}