PHP Classes

File: tests/autoloader_test.php

Recommend this page to a friend!
  Classes of Samuel Adeshina   Plug Loader   tests/autoloader_test.php   Download  
File: tests/autoloader_test.php
Role: Unit test script
Content type: text/plain
Description: PHPUnit Test
Class: Plug Loader
Autoload classes based on PSR-4 recommendation
Author: By
Last change:
Date: 8 years ago
Size: 260 bytes
 

Contents

Class file image Download
<?php
namespace Plug\Autoloader;

class
AutoloaderTest extends \PHPUnit_Framework_TestCase
{
    public function
testFileCanBeFound() {
       
$autoloader = new Autoloader();
       
$found = $autoloader->requireFile("autoload.json");

       
$this->assertTrue($found);
      }
}
?>