• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make PHPSpec work with CodeIgniter 2?

#1
I'm trying to make PHPSpec work with our CodeIgniter code, but I'm not being lucky.
I installed PhpSpec with Composer like this:

Code:
{
  "require": {
    "phpspec/phpspec": "~2.0"
  },
  "config": {
    "bin-dir": "bin"
  },
  "autoload": {
    "psr-4": { "phpspec\\": "" }
  }
}

and my PHPSpec configuration is:

Code:
suites:
    phpspec_suite:
        namespace: phpspec
        psr4_prefix: phpspec
        src_path: .

I'm making it run with:

Code:
bin/phpspec desc "phpspec\application\controllers\hello"

Any ideas on what am I doing wrong? Has someone used PHPSpec2 within CodeIgniter2? I've seen examples of using PHPSpec with Symfony, but I've found nothing on CodeIgniter...
Please, any help will be welcome!!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.