mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-01-11 15:29:34 -05:00
apply StyleCI recommendations
This commit is contained in:
parent
0a949d3903
commit
2776033997
@ -295,7 +295,7 @@ class JsonApiTest extends PHPUnit_Framework_TestCase
|
|||||||
public function testShortenViaYourlsFailure()
|
public function testShortenViaYourlsFailure()
|
||||||
{
|
{
|
||||||
$_SERVER['REQUEST_URI'] = '/path/shortenviayourls?link=https%3A%2F%2Fexample.com%2Fpath%2F%3Ffoo%23bar';
|
$_SERVER['REQUEST_URI'] = '/path/shortenviayourls?link=https%3A%2F%2Fexample.com%2Fpath%2F%3Ffoo%23bar';
|
||||||
$_GET['link'] = 'https://example.com/path/?foo#bar';
|
$_GET['link'] = 'https://example.com/path/?foo#bar';
|
||||||
ob_start();
|
ob_start();
|
||||||
new Controller;
|
new Controller;
|
||||||
$content = ob_get_contents();
|
$content = ob_get_contents();
|
||||||
|
@ -72,4 +72,4 @@ class YourlsProxyTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertTrue($yourls->isError());
|
$this->assertTrue($yourls->isError());
|
||||||
$this->assertEquals($yourls->getError(), 'Error calling YOURLS. Probably a configuration issue, like wrong or missing "apiurl" or "signature".');
|
$this->assertEquals($yourls->getError(), 'Error calling YOURLS. Probably a configuration issue, like wrong or missing "apiurl" or "signature".');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user