PHP Classes

File: tests/ArchTest.php

Recommend this page to a friend!
  Classes of tomloprod   Time Warden   tests/ArchTest.php   Download  
File: tests/ArchTest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Time Warden
Measure PHP execution time and invoke callbacks
Author: By
Last change:
Date: 1 month ago
Size: 339 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

arch('globals')
    ->
expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep', 'dispatch', 'dispatch_sync'])
    ->
not->toBeUsed();

arch('contracts')
    ->
expect('Tomloprod\TimeWarden\Contracts')
    ->
toBeInterfaces();

arch('concerns')
    ->
expect('Tomloprod\TimeWarden\Concerns')
    ->
toBeTraits();