build: Use composer's scripts.test instead of a bash file

* Update CacheTestCase::testPersistanceSet so that it makes at
  least one assertion.
* Enable phpunit strict mode.