This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace CoreTest; | |
use GuzzleHttp\Client; | |
use PHPUnit\Framework\TestCase; | |
/** | |
* Class AbstractApiTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo { | |
public $a = 1; | |
protected $b = 3; | |
private $c = 4; | |
} | |
$foo = new Foo; | |
do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A { | |
function __toString() { | |
return 'bar'; | |
} | |
} | |
$bar = 42; | |
$foo = new A(); | |
var_dump($$foo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A { | |
public $var = "blub"; | |
function __toString() { | |
return $var; | |
} | |
} | |
function makeBlab($object) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
switch ('superCoolValue') { | |
case 'bla': | |
echo "is bla"; | |
break; | |
case 'blu': | |
case 'bli': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int f() { | |
while (true) { | |
try { | |
return 1; | |
} finally { | |
break; | |
} | |
} | |
return 2; | |
} |