Category "phpunit"

Autoloading classes in PHPUnit using Composer and autoload.php

10 snippets

How should I get started using PHPUnit as a testing framework for a bunch of functions and classes I have already made?

9 snippets

phpunit - mockbuilder - set mock object internal property

7 snippets

Trying to mock an http client that is inside a controller, using phpunit, but it doesn't work

5 snippets

PHP Fatal error: Class not found - PHPUnit

5 snippets

laravel and phpunit: could not find driver (SQL: PRAGMA foreign_keys = ON;)

4 snippets

How to create tests w/Doctrine entities without persisting them (how to set id)

4 snippets

PHPUnit - REST API testing

4 snippets

PHPUNIT Test - Expected Status 200 But Received 500

4 snippets

Laravel Collections. Is there some kind of assertStructure method?

3 snippets

Phpunit partial mock + proxy Entity

3 snippets

"There is no active transaction" when refreshing database in Laravel 8.0 test

3 snippets

How to change locale in Symfony5 / PHPUnit before calling request?

3 snippets

phpunit - testing is painfully slow

3 snippets

PHPUnit 7: Failed asserting that exception of type InvalidArgumentException is thrown

2 snippets

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

2 snippets

Method IlluminateAuthRequestGuard::logout does not exist Laravel Passport

2 snippets

Where do I need to place a hook for phpunit?

2 snippets

PHPUnit (Phar) Fatal Error Only When Test Fails

2 snippets

How to Mock the Request Class in Laravel?

2 snippets