PHP Classes

File: tests/Architecture/GlobalsTest.php

Recommend this page to a friend!
  Packages of Victor John Ukam   Prompt Deck   tests/Architecture/GlobalsTest.php   Download  
File: tests/Architecture/GlobalsTest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Prompt Deck
Organize versioned artificial intelligence promts
Author: By
Last change:
Date: 1 month ago
Size: 553 bytes
 

Contents

Class file image Download
<?php

test
('globals are not used in any classes')
    ->
expect(['dd', 'ddd', 'die', 'dump', 'ray', 'sleep'])
    ->
toBeUsedInNothing();

test('all classes use strict types')
    ->
expect('Veeqtoh\PromptDeck')
    ->
toUseStrictTypes();

test('strict equality is enforced in all classes')
    ->
expect('Veeqtoh\PromptDeck')
    ->
toUseStrictEquality();

arch('PHP best practices are adhered to')->preset()->php();

arch('security best practices are adhered to')->preset()->security();

arch('Laravel best practices are adhered to')->preset()->laravel();