Update Connection.php

feof(): 41 is not a valid stream resource
Update Connection.php

Fix style Stream
Move tests to each component
Make components' tests run on their own and from main repo.
Each component has dedicated test config and bootstrap.
Duplication of parts of the skeleton is not ideal, but helps to reduce
dependencies between each test suite. Also, this eases the future
subtree split.
Merge branch 'refs/heads/gollariel-sock-conn' into 0.4
Merge branch 'refs/heads/0.4'
Merge branch 'refs/heads/clue-tests'