This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <phpunit backupGlobals="false" | |
| backupStaticAttributes="false" | |
| bootstrap="tests/bootstrap.php" | |
| colors="true" | |
| convertErrorsToExceptions="true" | |
| convertNoticesToExceptions="true" | |
| convertWarningsToExceptions="true" | |
| processIsolation="false" | |
| stopOnFailure="false" |
This file contains hidden or 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 | |
| require 'vendor/autoload.php'; | |
| use League\BooBoo\Runner; | |
| use League\BooBoo\Formatter\JsonFormatter; | |
| $booboo = new Runner(); | |
| $formatter = new JsonFormatter(); | |
| $booboo->pushFormatter($formatter); |
This file contains hidden or 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 | |
| use Phprest\Util\Controller; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Phprest\Response; | |
| use League\Fractal\Manager; | |
| use League\Fractal\Resource\Item; | |
| class Temperature extends Controller | |
| { | |
| public function get(Request $request, $version, $id) |
This file contains hidden or 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
| a = None | |
| a is not None # False | |
| t = (1, 2, 3) | |
| 2 in t # True | |
| a = 10 | |
| 7 < a <= 10 # True | |
| def is_float_equal(a, b): |
NewerOlder