for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: jaredchu
* Date: 31/05/2017
* Time: 10:14
*/
use JC\JCRequest;
class JCRequestTest extends PHPUnit_Framework_TestCase
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* @var string
private $url;
public function setUp()
$this->url = 'http://google.com';
}
public function testGet()
$response = JCRequest::get($this->url);
$this->assertEquals(200, $response->status());
$this->assertNotEmpty($response->body());
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.