alphazframework / framework

Core files of AlphaZ Framework
https://alphazframework.github.io/
MIT License
16 stars 17 forks source link

After adding \Site\Key classs tests failing #293

Closed lablnet closed 5 years ago

lablnet commented 5 years ago

The error log say that Zest\Contracts\Site\Key is not found

but this file in place and valid.

Also there is no such error in my local

Any idea why this happening?

hasukmistry commented 5 years ago

Hi @Lablnet can you try using \ in front of it. for example use \Zest\Contracts\Site\Key and also you have defined an interface with Key not key.

Screenshot 2019-10-04 at 12 47 53 PM

lablnet commented 5 years ago

Hi @Lablnet can you try using \ in front of it. for example use \Zest\Contracts\Site\Key and also you have defined an interface with Key not key.

Screenshot 2019-10-04 at 12 47 53 PM

Am wondering why to put \ because you may see other classes, there is no such issue with them, in case you may consider Str, Arrays etc...

Let's wait reply from @peter279k

lablnet commented 5 years ago

This is still failing but in my local Unit Testing its passed

image

I do not know what to do!!!!!!!!!!!!!

hasukmistry commented 5 years ago

@Lablnet Did you try to change use Zest\Contracts\Site\key as KeyContract; to use Zest\Contracts\Site\Key as KeyContract; in src\Site\Key.php

hasukmistry commented 5 years ago

This is still failing but in my local Unit Testing its passed

image

I do not know what to do!!!!!!!!!!!!!

In your unit test, there is a correct import for Key

lablnet commented 5 years ago

@

This is still failing but in my local Unit Testing its passed image I do not know what to do!!!!!!!!!!!!!

In your unit test, there is a correct import for Key

Localhost is loosely environment