Prepare System For Yii Testing

Hello, I would like to ask Yii Community, where and how to install all stuff to get testing?

System: Windows 7, apache, php 5.4, mysql 5.5, yii 1.1.13

As I know from Guide, I need to install PEAR, PHPUnit and Selenium Remote server. That’s what I’ve done. These extensions seems to be working (I can call pear and phpunit from shell and Selenium RS is running normally).

But I can’t run tests itself, both the one from my application/protected/tests and examples got from selenium and pear sites.

Here is my hierarchy of folders (Selenium…jar is not in there, but it’s doesn’t matter from where to run)




D:\SITE\PHP\PEAR

├───bin

├───cfg

├───data

│   ├───PEAR

│   └───Structures_Graph

├───docs

│   ├───Archive_Tar

│   │   └───docs

│   ├───File_Iterator

│   ├───PEAR

│   ├───PHPUnit

│   ├───PHPUnit_MockObject

│   ├───PHP_CodeCoverage

│   ├───PHP_Timer

│   ├───PHP_TokenStream

│   ├───Structures_Graph

│   │   └───docs

│   │       ├───html

│   │       │   ├───media

│   │       │   └───Structures_Graph

│   │       └───tutorials

│   │           └───Structures_Graph

│   ├───Text_Template

│   ├───XML_Util

│   │   └───examples

│   └───Yaml

│       └───Symfony

│           └───Component

│               └───Yaml

├───lib

│   ├───.channels

│   │   └───.alias

│   ├───.registry

│   │   ├───.channel.components.ez.no

│   │   ├───.channel.doc.php.net

│   │   ├───.channel.pear.phpunit.de

│   │   ├───.channel.pear.symfony-project.com

│   │   ├───.channel.pear.symfony.com

│   │   ├───.channel.pecl.php.net

│   │   └───.channel.__uri

│   ├───Archive

│   ├───Console

│   ├───File

│   │   └───Iterator

│   ├───OS

│   ├───PEAR

│   │   ├───ChannelFile

│   │   ├───Command

│   │   ├───Downloader

│   │   ├───Frontend

│   │   ├───Installer

│   │   │   └───Role

│   │   ├───PackageFile

│   │   │   ├───Generator

│   │   │   ├───Parser

│   │   │   └───v2

│   │   ├───REST

│   │   ├───Task

│   │   │   ├───Postinstallscript

│   │   │   ├───Replace

│   │   │   ├───Unixeol

│   │   │   └───Windowseol

│   │   └───Validator

│   ├───phpunit.bat

│   ├───phpunit.php

│   ├

│   ├───PHP

│   │   ├───CodeCoverage

│   │   │   ├───Driver

│   │   │   ├───Report

│   │   │   │   ├───HTML

│   │   │   │   │   └───Renderer

│   │   │   │   │       └───Template

│   │   │   │   │           ├───css

│   │   │   │   │           ├───img

│   │   │   │   │           └───js

│   │   │   │   └───Node

│   │   │   └───Util

│   │   ├───Timer

│   │   └───Token

│   │       └───Stream

│   ├───PHPUnit

│   │   ├───Extensions

│   │   │   ├───PhptTestCase

│   │   │   ├───Selenium2TestCase

│   │   │   │   ├───Element

│   │   │   │   ├───ElementCommand

│   │   │   │   ├───Session

│   │   │   │   │   └───Cookie

│   │   │   │   ├───SessionCommand

│   │   │   │   └───SessionStrategy

│   │   │   ├───SeleniumCommon

│   │   │   └───SeleniumTestCase

│   │   ├───Framework

│   │   │   ├───Assert

│   │   │   ├───Comparator

│   │   │   ├───Constraint

│   │   │   │   └───JsonMatches

│   │   │   ├───Error

│   │   │   ├───MockObject

│   │   │   │   ├───Builder

│   │   │   │   ├───Generator

│   │   │   │   ├───Invocation

│   │   │   │   ├───Matcher

│   │   │   │   └───Stub

│   │   │   ├───Process

│   │   │   └───TestSuite

│   │   ├───Runner

│   │   ├───TextUI

│   │   └───Util

│   │       ├───DeprecatedFeature

│   │       ├───Log

│   │       ├───PHP

│   │       └───TestDox

│   │           └───ResultPrinter

│   ├───Structures

│   │   └───Graph

│   │       └───Manipulator

│   ├───Symfony

│   │   └───Component

│   │       └───Yaml

│   │           ├───Exception

│   │           └───Tests

│   │               └───Fixtures

│   ├───Text

│   │   └───Template

│   └───XML

├───tests

│   ├───Structures_Graph

│   │   └───tests

│   │       └───testCase

│   └───XML_Util

│       └───tests

└───tmp



I also add location of phpunit.bat and phpunit.bat in it, I think this is important. (By the way, there package.xml and package.sig in archive I got from pear extensions site. I don’t know, what they are for, and I leave them in archive).

Hope somebody has a grasp of it and will help me with it