hasAgent() public static method

Whether to has specified agent.
public static hasAgent ( string $name ) : boolean
$name string
return boolean
示例#1
0
文件: SmsTest.php 项目: toplan/phpsms
 public function testHasAgent()
 {
     $this->assertFalse(Sms::hasAgent('Log'));
     $this->assertFalse(Sms::hasAgent('SomeAgent'));
     Sms::getAgent('Log');
     $this->assertTrue(Sms::hasAgent('Log'));
 }