phpunit tag

8 questions


1 answers
141 views
0
Error: Fatal Error (1): Class 'AppShell' not found in when testing the cake2.x shell with PHPUnit

I created the shell program app/Console/Command/TestShell.php in cakephp2.x.The shell itself works, but when I launch the PHPUnit test code from my browser, it turns white and error.log shows the foll...

2 years ago

1 answers
144 views
0
CakePHP Fixure Does Not Generate Tables

UnitTest with CakePHPv2.5.5.configurationdatabases.phppublic$xxxx=array( // ...);public$test_xxxx=array( 'datasource' = > 'Database/MysqlExportDb', 'persistent' = > false, 'host' = > 'localho...

2 years ago

1 answers
73 views
0
CakePHP4 Cannot Generate Code Coverage

Create a controller test with CakePHP4 and I tried to generate code coverage, but I couldn't.Refer to the article below and Cookbook > Test > Generate Code Coveragehttps://book.cakephp.org/4/ja/...

2 years ago

1 answers
120 views
0
Error when trying to get coverage in xdebug by running laravel unit test

PrerequisitesWhen I tried to get coverage with xdebug by running the unit test of laravel, I got the following error:If anyone knows how to deal with it, I would appreciate it if you could let me know...

2 years ago

2 answers
77 views
0
I want to mock standard functions in PHP.

If you need to write a test code for a code like ↓class Standard_Function extensions\Utility{ /** * @param array [1,2] (fixed) * @return array */ public static function get_Shuffle($array){ return...

2 years ago

1 answers
87 views
0
Error when installing laravel in Cloud9 and testing phpunit.

The following steps will result in an error.(1) Install Ravel in Cloud9.(2) Copy route.php to route_a.php.Add the following description to route_a.phpRoute::get('/test/', function(){ echo'test';});(3)...

2 years ago

2 answers
85 views
0
PHPUnit Test Confirms Registration Test Response Does Not Work and Error Occurs

I am doing multi-posting, thank you for your cooperation.https://teratail.com/questions/c842khs7083hcaI am creating apps with laravel and vue.js in the following environments.MacOSPHP 7.4.1Lavel 6.20....

2 years ago

1 answers
90 views
0
"InvalidSessionIdException: invalid session id" Error in browser test on disk in laravel 6.0

Code AffectedI don't know how to resolve the error in the next test on laravel diskclass HomeTest extensions DuskTestCase{ /** * ADask test example. * * @return void */ public function testExample...

2 years ago

© 2024 OneMinuteCode. All rights reserved.