phpunit tag

8 questions


1 answers
106 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...

1 years ago

1 answers
117 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...

1 years ago

1 answers
58 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/...

1 years ago

1 answers
93 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...

1 years ago

2 answers
59 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...

1 years ago

1 answers
65 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)...

1 years ago

2 answers
66 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....

1 years ago

1 answers
72 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...

1 years ago

© 2024 OneMinuteCode. All rights reserved.