public function getNotification($type = null) { if (array_key_exists($type, self::$_notificationArray)) { return self::$_notificationArray[$type]; } else { if (!$type) { return self::$_notificationArray; } } return false; }
/** * testGetInvalid * * @since 2.1.0 */ public function testGetInvalid() { /* setup */ $module = new Module(); /* actual */ $actual = $module->getNotification('invalidKey'); /* compare */ $this->assertFalse($actual); }