Questions tagged as 'phpunit'

0
answers

How to perform tests (PHPUNIT) in Phabricator?

I created a test class in Phabricator and when I ran the following error appeared    [Core Exception / PhutilMissingSymbolException] Failed to load   class or interface 'PHPUnit \ Framework \ TestCase': the class or the   interface 'PHPUnit \...
asked by 19.01.2018 / 12:32
1
answer

PHPUnit does not work

I'm trying to run tests on my project, but PHPUnit does not work! I'm trying to run it, via composer ( vendor/bin/phpunit ). However, nothing happens ... I no longer know what to do to make it work. In other projects, everything works norm...
asked by 17.01.2018 / 16:26
1
answer

Docker-compose to create lamp with phpunit

I'm trying to use docker-compose to create a LAMP environment along with phpunit to run TDD php and what I want to do is this: run a mysql image 5; run an image phpunit 5; run a php 5.6 image so that it communicates with the other i...
asked by 27.12.2017 / 16:24
0
answers

Phpunit call native function once and return stdClass

github.com/HubToDo/traits/blob/master/tests/JsonRenderTest.p hp I am doing a successful test of my trait function My trait is this: <?php namespace HubToDo\Traits; use InvalidArgumentException; /** * Trait JsonRender. * * @package...
asked by 21.08.2017 / 16:55
0
answers

Class PHPUnit \ DbUnit \ TestCase not found

Galera When I run a test in phpunit whose class extends from \ PHPUnit \ DbUnit \ TestCase I get this message: PHP Fatal error: Class 'PHPUnit\DbUnit\TestCase' not found But when I run a test of a class that extends from \ PHPUnit \ Fra...
asked by 06.05.2017 / 01:36
1
answer

Use PHPUnit with interactive form

I have a form with Car Brands, Templates and Versions. I'm using PHPUnit to test the form. It works this way: User selects the tag, then the template select is loaded and finally the version select is loaded. My application is made with...
asked by 13.01.2017 / 15:18
1
answer

PHP Unit, run bench test, test with mocks and test with SQL Lite all together

It is the following personal, working on a huge system, has projects or mini services within a project that we need to test them using Mock, or using PHP database or SQL Lite. The problem is that for each of these types of tests I have to set...
asked by 16.10.2017 / 13:29