kenjis / ci-hmvc-ci-phpunit-test

CodeIgniter HMVC and ci-phpunit-test
7 stars 13 forks source link

No test cases are running on same project #4

Closed rockers007 closed 4 years ago

rockers007 commented 6 years ago

I follow this steps $ git clone https://github.com/kenjis/ci-hmvc-ci-phpunit-test.git $ cd ci-hmvc-ci-phpunit-test/ $ composer install $ vendor/bin/phpunit -c application/tests/

but no test cases running. its give me this message

PHPUnit 4.8.21 by Sebastian Bergmann and contributors. Warning: The Xdebug extension is not loaded No code coverage will be generated.

kenjis commented 4 years ago

I can't reproduce it.

$ git clone https://github.com/kenjis/ci-hmvc-ci-phpunit-test.git
Cloning into 'ci-hmvc-ci-phpunit-test'...
remote: Enumerating objects: 809, done.
remote: Total 809 (delta 0), reused 0 (delta 0), pack-reused 809
Receiving objects: 100% (809/809), 392.44 KiB | 594.00 KiB/s, done.
Resolving deltas: 100% (280/280), done.

$ cd ci-hmvc-ci-phpunit-test/

$  composer install
Deprecation warning: require-dev.mikey179/vfsStream is invalid, it should not contain uppercase characters. Please use mikey179/vfsstream instead. Make sure you fix this as Composer 2.0 will error.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 28 installs, 0 updates, 0 removals
  - Installing codeigniter/framework (3.0.3): Loading from cache
  - Installing jakub-onderka/php-console-color (0.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.1.0): Loading from cache
  - Installing symfony/var-dumper (v3.0.2): Loading from cache
  - Installing symfony/console (v3.0.2): Loading from cache
  - Installing kenjis/ci-phpunit-test (dev-master 9b67542): Cloning 9b6754226a from cache
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache
  - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
  - Installing psy/psysh (v0.6.1): Loading from cache
  - Installing mikey179/vfsstream (v1.1.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (2.0.4): Loading from cache
  - Installing phpunit/php-token-stream (1.4.8): Loading from cache
  - Installing symfony/yaml (v3.0.1): Loading from cache
  - Installing sebastian/version (1.0.6): Loading from cache
  - Installing sebastian/global-state (1.1.1): Loading from cache
  - Installing sebastian/recursion-context (1.0.2): Loading from cache
  - Installing sebastian/exporter (1.2.1): Loading from cache
  - Installing sebastian/environment (1.3.3): Loading from cache
  - Installing sebastian/diff (1.4.1): Loading from cache
  - Installing sebastian/comparator (1.2.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing doctrine/instantiator (1.0.5): Loading from cache
  - Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
  - Installing phpunit/php-timer (1.0.7): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.1): Loading from cache
  - Installing phpunit/php-code-coverage (2.2.4): Loading from cache
  - Installing phpspec/prophecy (v1.5.0): Loading from cache
  - Installing phpunit/phpunit (4.8.21): Loading from cache
symfony/var-dumper suggests installing ext-symfony_debug
symfony/console suggests installing psr/log (For using the console logger)
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/process
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files

$ vendor/bin/phpunit -c application/tests/
PHPUnit 4.8.21 by Sebastian Bergmann and contributors.
Warning:    The Xdebug extension is not loaded
        No code coverage will be generated.

.....

Time: 616 ms, Memory: 22.00Mb

OK (5 tests, 9 assertions)