notice = new DatabaseEngineNotice( new WPFunctions() ); } public function testItDoesntDisplayWhenDisabled() { $this->notice->disable(); $result = $this->notice->init(true); verify($result)->null(); } }