PHP Classes

File: tests/Unit/ValueObjects/FqcnTest.php

Recommend this page to a friend!
  Classes of DeGraciaMathieu   PHP Class Dependencies Analyzer   tests/Unit/ValueObjects/FqcnTest.php   Download  
File: tests/Unit/ValueObjects/FqcnTest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Class Dependencies Analyzer
Analyze the dependencies of project classes
Author: By
Last change:
Date: 1 month ago
Size: 561 bytes
 

Contents

Class file image Download
<?php

use App\Domain\ValueObjects\Fqcn;

test('it able to identify himself', function () {

   
$fqcn = new Fqcn('App\Domain\ValueObjects\Coupling');

   
$looked = $fqcn->looksLike([
       
'App\Domain\ValueObjects\Coupling',
       
'App\Domain\ValueObjects\Instability',
    ]);

   
expect($looked)->toBeTrue();
});

test('it able of not identifying himself', function () {

   
$fqcn = new Fqcn('App\Domain\ValueObjects\Coupling');

   
$looked = $fqcn->looksLike([
       
'App\Domain\ValueObjects\Other',
    ]);

   
expect($looked)->toBeFalse();
});