Remove PhpStream.
Add tests.