From 87f4c66f006e62789611b2128a90588761395586 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Sat, 6 Apr 2013 12:38:38 -0500 Subject: Beginnings of PHPUnit tests. Replacing SimpleTest with PHPUnit. --- src/HTML5/Serializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HTML5') 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); } -- cgit v1.2.3