Example #1
0
 /**
  * @covers Client::system()
  * @test
  */
 public function testSystem()
 {
     $stub = $this->getMockBuilder('Sugar\\Solr\\Request\\Factory')->disableOriginalConstructor()->getMock();
     $stub->expects($this->once())->method('request')->will($this->returnValue('{}'));
     $obj = new Client('localhost', 'core', 8983);
     $obj->setFactory($stub);
     $this->assertEquals([], $obj->system());
 }
Example #2
0
 public function client()
 {
     Debug::show(Client::system());
     Debug::show(Client::browser());
     Debug::show(Client::equipment());
     Debug::show(Client::ip());
     Debug::show(Client::language());
     Debug::show(Client::isWeixin());
 }