Tuesday, November 29, 2011

Re: Cake2.0 not recognizing my PHPUnit installation

we did it :)
Installing PHPUnit was never easier
https://github.com/dereuromark/PHPUnit-Cake2

a) Drop our plugin into your /Plugin/ folder
b) Run "Phpunit.Phpunit install

thats it.
nothing more to do, no include paths, no strange pear installer (since
your Vendor path is already one by default)

On 8 Nov., 16:41, euromark <dereurom...@googlemail.com> wrote:
> I just saw an awesome idea in github:https://github.com/Hyra/PHPUnit-Cake2
>
> If I was him I would make a it a os independent cake2 shell though..
> "cakePhpUnitinstall" (or even upgrade one day)
> would be a self installing shell then.
>
> On 25 Okt., 18:45, andrewperk <andrewp...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Thanks everyone.
>
> > Mark figured it out, it was the include_path.
>
> > I noticed that my pear andphpunitwas installed under:
>
> > /usr/share/php/PHPUnit
> > /usr/share/php/PEAR
>
> > But my include path does not include this location. My include path is
> > looking for things under:
>
> > /opt/lampp/lib/php
>
> > I just edited my php.ini include_path to also include the /usr/share/
> > php directory and it works!
>
> > Thanks again.
>
> > Andrew
>
> > On Oct 25, 9:10 am, mark_story <mark.st...@gmail.com> wrote:
>
> > > I would check that php's include_path includes the path thatPHPUnit
> > > was installed into.
>
> > > -Mark
>
> > > On Oct 24, 4:23 pm, andrewperk <andrewp...@gmail.com> wrote:
>
> > > > Hello,
>
> > > > I havePHPUnit3.5.15 installed on Linux, PHP 5.3.5, it was installed
> > > > using the pear installer per the directions in the cake 2.0 book.
>
> > > > When I browse to localhost/myapp/test.php, cake tells mePHPUnitis
> > > > not installed. It tells me to run some commands to install it. So I
> > > > tried running those commands and each time I do, it says they are
> > > > already installed.
>
> > > > Does anyone know how to get cake to recognizephpunit?  Thanks.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: