I hereby claim:
- I am adroit11 on github.
- I am adroitcode (https://keybase.io/adroitcode) on keybase.
- I have a public key ASBVK682R9byaWZPATeGrUIieM7rmH-7qq4Oqq1Oj_875wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
use Library\App\LibraryRoute; | |
use Slim\Http\Environment; | |
use Slim\Http\Request; | |
use PHPUnit\Framework\TestCase; | |
class LibraryTestCase extends TestCase | |
{ | |
protected $app; | |
public function setUp() |
<?php | |
use Library\App\LibraryRoute; | |
use Slim\Http\Environment; | |
use Slim\Http\Request; | |
use PHPUnit\Framework\TestCase; | |
class LibraryTestCase extends TestCase | |
{ | |
protected $app; | |
public function setUp() |
<?php | |
use Library\App\LibraryRoute; | |
use Slim\Http\Environment; | |
use Slim\Http\Request; | |
use PHPUnit\Framework\TestCase; | |
class LibraryTestCase extends TestCase | |
{ | |
protected $app; | |
public function setUp() |
<?php | |
use Library\App\LibraryRoute; | |
use Slim\Http\Environment; | |
use Slim\Http\Request; | |
use PHPUnit\Framework\TestCase; | |
class LibraryTestCase extends TestCase | |
{ | |
protected $app; | |
public function setUp() |
<?php | |
require '../vendor/autoload.php'; | |
// Run app | |
$app = (new Library\App\LibraryRoute())->get(); | |
$app->run(); |
{ | |
"name": "your name", | |
"description":"a simple mini library demo app", | |
"require": { | |
"slim/slim": "^3.0" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "^7" | |
}, | |
"autoload": { |
<?php | |
namespace Library\App; | |
use \Psr\Http\Message\ServerRequestInterface as Request; | |
use \Psr\Http\Message\ResponseInterface as Response; | |
class LibraryRoute | |
{ | |
/** | |
* Stores an instance of the Slim application. | |
* | |
* @var \Slim\App |
<?php | |
use \Psr\Http\Message\ServerRequestInterface as Request; | |
use \Psr\Http\Message\ResponseInterface as Response; | |
require '../vendor/autoload.php'; | |
$app = new \Slim\App(); | |
function availableLibraryId($id) { | |
return (int)$id && $id > 0 && $id <= 5; |
<?php | |
use PHPUnit\Framework\TestCase; | |
class LibraryTestCase extends TestCase | |
{ | |
public function testLibraryGet() { | |
$this->assertTrue(true); | |
} | |
} |