public static function hasAgent($name) { return isset(self::$agents[$name]); }
public function testHasAgent() { $this->assertFalse(Sms::hasAgent('Log')); $this->assertFalse(Sms::hasAgent('SomeAgent')); Sms::getAgent('Log'); $this->assertTrue(Sms::hasAgent('Log')); }