My constructor sets property with data which loaded from database. How can I test if it really load data from db? I want %100 test coverage rate so I need test every piece of my code.
<?php
class PreferencesAdapter {
private $_preferences = NULL;
public function __construct() {
...
$this->load();
...
}
public function load() {
...
$this->_preferences= DataFromDb();
}
}
?>