Welcome Guest, Not a member yet? Register   Sign In
How to make PHPSpec work with CodeIgniter 2?
#1

(This post was last modified: 03-11-2015, 06:36 AM by elmitxel.)

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


Messages In This Thread
How to make PHPSpec work with CodeIgniter 2? - by elmitxel - 03-10-2015, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB