Page MenuHomeDevCentral

ConfigTest.php
No OneTemporary

ConfigTest.php

<?php
namespace Nasqueron\Notifications\Tests\Providers;
use Config;
use File;
class ConfigTest extends TestCase {
/**
* The actual list of services providers
*
* @var string[]
*/
private $providers;
/**
* The service providers' namespace
*
* @var string
*/
private $namespace;
public function setUp () {
parent::setUp();
$this->providers = Config::get('app.providers');
$this->namespace = $this->app->getInstance()->getNamespace()
. 'Providers\\';
}
public function testOmittedFiles () {
$files = File::allFiles(app_path('Providers'));
foreach ($files as $file) {
$class = $this->namespace . $file->getBasename('.php');
$this->assertContains(
$class, $this->providers,
"The class $class should be added to config/app.php in the " .
"providers array."
);
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Jun 26, 05:13 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2759584
Default Alt Text
ConfigTest.php (998 B)

Event Timeline