Unit Tests



This section lists the libraries for which tests are written. The ZN Framework used the test library it developed as a unit test. Unit tests are included in the Tests / directory within the libraries . Below is a list of how to run the tests for the library.

 

 

# Unit Tests


Unit testing classes are listed below.

ZN\Authentication\Tests\User
ZN\Buffering\Tests\Buffer
ZN\Cache\Tests\Cache
ZN\Captcha\Tests\Captcha
ZN\Comparison\Tests\Benchmark
ZN\Compression\Tests\Compress
ZN\Crontab\Tests\Crontab
ZN\Cryptography\Tests\Crypto
ZN\Cryptography\Tests\Encode
ZN\Database\Tests\DB
ZN\Database\Tests\DBForge
ZN\Database\Tests\DBTool
ZN\Database\Tests\DBTrigger
ZN\Database\Tests\DBUser
ZN\Database\Tests\Migration
ZN\DataTypes\Tests\Arrays
ZN\DataTypes\Tests\Strings
ZN\DateTime\Tests\Date
ZN\DateTime\Tests\Time
ZN\Email\Tests\Email
ZN\Filesystem\Tests\Excel
ZN\Filesystem\Tests\File
ZN\Filesystem\Tests\Folder
ZN\Generator\Tests\Generate
ZN\Helpers\Tests\Cleaner
ZN\Helpers\Tests\Converter
ZN\Helpers\Tests\Limiter
ZN\Helpers\Tests\Logger
ZN\Helpers\Tests\Rounder
ZN\Helpers\Tests\Searcher
ZN\Hypertext\Tests\Form
ZN\Hypertext\Tests\Html
ZN\Hypertext\Tests\Style
ZN\Hypertext\Tests\Sheet
ZN\Image\Tests\GD
ZN\Image\Tests\Thumb
ZN\Language\Tests\ML
ZN\Pagination\Tests\Pagination
ZN\Prompt\Tests\Processor
ZN\Protection\Tests\Json
ZN\Protection\Tests\Separator
ZN\Protection\Tests\Serial
ZN\Remote\Tests\FTP
ZN\Remote\Tests\SSH
ZN\Request\Tests\Http
ZN\Request\Tests\Method
ZN\Request\Tests\Request
ZN\Request\Tests\Server
ZN\Request\Tests\URI
ZN\Request\Tests\URL
ZN\Response\Tests\Redirect
ZN\Security\Tests\Security
ZN\Services\Tests\CDN
ZN\Services\Tests\CURL
ZN\Services\Tests\Restful
ZN\Shopping\Tests\Cart
ZN\Storage\Tests\Cookie
ZN\Storage\Tests\Session
ZN\Validation\Tests\Validation
ZN\Validation\Tests\Validator
ZN\Validation\Tests\Validate
ZN\XML\Tests\XML

 

 

# Result


The result()method to see the results of any of the above list is used.

echo ​​​​​ZN\Cryptography\Tests\Encode::result();