PHP Classes

File: tests/TestRegistrationApp/PackageTest.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   tests/TestRegistrationApp/PackageTest.php   Download  
File: tests/TestRegistrationApp/PackageTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 4 months ago
Size: 656 bytes
 

Contents

Class file image Download
<?php

namespace Jaxon\Tests\TestRegistrationApp;

require_once
__DIR__ . '/../src/packages.php';

use
Jaxon\Exception\SetupException;
use
PHPUnit\Framework\TestCase;
use
SamplePackage;


class
PackageTest extends TestCase
{
   
/**
     * @throws SetupException
     */
   
public function setUp(): void
   
{
       
jaxon()->app()->setup(__DIR__ . '/../config/app/package.php');
    }

   
/**
     * @throws SetupException
     */
   
public function tearDown(): void
   
{
       
jaxon()->reset();
       
parent::tearDown();
    }

    public function
testContainer()
    {
       
$this->assertTrue(jaxon()->di()->h(SamplePackage::class));
    }
}