title: Phalcon: how to run example unit test?
body: <p>I tried to run an example from here:
  <a href="http://docs.phalconphp.com/en/latest/reference/unit-testing.html" rel="nofollow">http://docs.phalconphp.com/en/latest/reference/unit-testing.html</a></p>
  
  <p>I created composer file:</p>
  
  <pre><code>{
      "require": {
          "phalcon/incubator": "dev-master"
      }
  }
  </code></pre>
  
  <p>After composer installation I've tried to run phpunit and got an error:</p>
  
  <pre><code>PHP Fatal error:  Class 'Codeception\TestCase\Test' not found in /www/tests/vendor/phalcon/incubator/codeception/unit/Phalcon/Validation/Validator/Db/UniquenessTest.php on line 9
  </code></pre>
  
  <p>I added new dependency:</p>
  
  <pre><code>composer require "codeception/codeception:*"
  </code></pre>
  
  <p>It added many dependencies.</p>
  
  <p>After that I got another error:</p>
  
  <pre><code>PHP Warning:  require_once(tests/data/app/data.php): failed to open stream: No such file or directory in www/tests/vendor/codeception/codeception/tests/unit/Codeception/Module/FacebookTest.php on line 3
  </code></pre>
  
  <p>I changed </p>
  
  <pre><code>require_once(tests/data/app/data.php)
  </code></pre>
  
  <p>to</p>
  
  <pre><code>require_once(__DIR__ . '/../../../../tests/data/app/data.php')
  </code></pre>
  
  <p>in follow follow files:</p>
  
  <pre><code>www/tests/vendor/codeception/codeception/tests/unit/Codeception/Module/WebDriverTest.php
  www/tests/vendor/codeception/codeception/tests/unit/Codeception/Module/WFacebookTest.php
  www/tests/vendor/codeception/codeception/tests/unit/Codeception/Module/PhpBrowserTest.php
  </code></pre>
  
  <p>Ok. Phpunit running...I've got next error:</p>
  
  <pre><code>PHP Fatal error:  Class 'WebDriverTestCase' not found in `www/tests/vendor/facebook/webdriver/tests/functional/BaseTest.php on line 16`
  </code></pre>
  
  <p>Ok.. I tried to include:</p>
  
  <pre><code>require_once __DIR__ . '/WebDriverTestCase.php';
  </code></pre>
  
  <p>to</p>
  
  <pre><code>www/tests/vendor/facebook/webdriver/tests/functional/BaseTest.php
  </code></pre>
  
  <p><strong>Now I have following error which I cannot fix:</strong></p>
  
  <pre><code>PHP Fatal error:  Uncaught exception 'PHPUnit_Framework_Exception' with message 'Class "PHPUnit_Extensions_RepeatedTest" does not extend PHPUnit_Framework_TestCase.' in www/tests/vendor/phpunit/phpunit/src/Framework/TestSuite.php:195
  Stack trace:
  #0 /www/tests/vendor/phpunit/phpunit/src/Framework/TestSuite.php(324): PHPUnit_Framework_TestSuite-&gt;__construct(Object(ReflectionClass))
  #1 /www/tests/vendor/phpunit/phpunit/src/Framework/TestSuite.php(409): PHPUnit_Framework_TestSuite-&gt;addTestSuite(Object(ReflectionClass))
  #2 /www/tests/vendor/phpunit/phpunit/src/Framework/TestSuite.php(435): PHPUnit_Framework_TestSuite-&gt;addTestFile('/Users/anthony/...')
  #3 phar:///usr/local/zend/bin/phpunit/phpunit/Util/Configuration.php(911): PHPUnit_Framework_TestSuite-&gt;addTestFiles(Array)
  #4 phar:///usr/local/zend/bin/phpunit/phpunit/Util/Configuration.php(825): PHPUnit_Util_Configura in /www/tests/UnitTestCase.php on line 61
  </code></pre>
  
  <p>I thought composer should make your life easer by it seems doesn't. Is it ok I have to change some code in vendor libraries?!... where I'm doing wrong? I just need to use phpunit in phalcon...</p>