for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nord\Lumen\Cors\Tests;
use Nord\Lumen\Cors\CorsService;
use Nord\Lumen\Cors\CorsServiceProvider;
class CorsServiceProviderTest extends \Codeception\Test\Unit
{
use \Codeception\Specify;
/**
* @var MockApplication
*/
protected $app;
* @inheritdoc
protected function setup(): void
$this->app = new MockApplication();
$this->app->register(CorsServiceProvider::class);
}
*
public function testAssertCanBeRegistered()
$this->specify('verify serviceProvider is registered', function () {
$service = $this->app->make(CorsService::class);
verify($service)->isInstanceOf(CorsService::class);
});