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

(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:

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

and my PHPSpec configuration is:

        namespace: phpspec
        psr4_prefix: phpspec
        src_path: .

I'm making it run with:

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!!

Theme © iAndrew 2016 - Forum software by © MyBB