isCli() public static method

Check CLI
public static isCli ( ) : boolean
return boolean
Esempio n. 1
0
 /**
  * Test `Is` Methods
  */
 public function testIsMethods()
 {
     $this->assertTrue(Request::isHttp());
     $this->assertFalse(Request::isCli());
 }