renamed ApcListener.php
convert `null` to `false`
fixed logic
added tests
added `.travis-ci.yml`