Re: Cake2.0 not recognizing my PHPUnit installation

2011-11-29 Thread euromark
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  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  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  wrote:
>
> > > I would check that php's include_path includes the path thatPHPUnit
> > > was installed into.
>
> > > -Mark
>
> > > On Oct 24, 4:23 pm, andrewperk  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-11-08 Thread euromark
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..
"cake PhpUnit install" (or even upgrade one day)
would be a self installing shell then.



On 25 Okt., 18:45, andrewperk  wrote:
> Thanks everyone.
>
> Mark figured it out, it was the include_path.
>
> I noticed that my pear and phpunit was 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  wrote:
>
>
>
>
>
>
>
> > I would check that php's include_path includes the path that PHPUnit
> > was installed into.
>
> > -Mark
>
> > On Oct 24, 4:23 pm, andrewperk  wrote:
>
> > > Hello,
>
> > > I have PHPUnit 3.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 me PHPUnit is
> > > 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 recognize phpunit?  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-25 Thread andrewperk
Thanks everyone.

Mark figured it out, it was the include_path.

I noticed that my pear and phpunit was 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  wrote:
> I would check that php's include_path includes the path that PHPUnit
> was installed into.
>
> -Mark
>
> On Oct 24, 4:23 pm, andrewperk  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I have PHPUnit 3.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 me PHPUnit is
> > 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 recognize phpunit?  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-25 Thread mark_story
I would check that php's include_path includes the path that PHPUnit
was installed into.

-Mark

On Oct 24, 4:23 pm, andrewperk  wrote:
> Hello,
>
> I have PHPUnit 3.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 me PHPUnit is
> 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 recognize phpunit?  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-24 Thread Zaky Katalan-Ezra
Download all repositories and update include_path as said in the section
"Using PHPUnit From a Git Checkout" in
https://github.com/sebastianbergmann/phpunit

On Tue, Oct 25, 2011 at 3:21 AM, andrewperk  wrote:

> Ok, I downloaded and put PHPUnit into my vendors folder. Now when I
> run test.php I get an error about not being able to load a file from
> PHPUnit's Autoload.php file
>
> require_once(PHP/CodeCoverage/Filter.php) [function.require-once]:
> failed to open stream: No such file or directory [ROOT/vendors/PHPUnit/
> Autoload.php, line 46]
>
> I tried updating pear channels and clearing pear cache, neither of
> those fixed this problem
>
> Is this Filter.php file part of Pear? Maybe PHPUnit isn't able to find
> it because my pear isn't working properly? When I run 'pear' in the
> terminal it appears to be working just fine.
>
> Thanks for any help.
>
> On Oct 24, 2:35 pm, euromark  wrote:
> > I dont install it at all and just drop the necessary files in /vendors
> > works like a charm :)
> >
> > On 24 Okt., 22:23, andrewperk  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hello,
> >
> > > I have PHPUnit 3.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 me PHPUnit is
> > > 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 recognize phpunit?  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+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-24 Thread andrewperk
Ok, I downloaded and put PHPUnit into my vendors folder. Now when I
run test.php I get an error about not being able to load a file from
PHPUnit's Autoload.php file

require_once(PHP/CodeCoverage/Filter.php) [function.require-once]:
failed to open stream: No such file or directory [ROOT/vendors/PHPUnit/
Autoload.php, line 46]

I tried updating pear channels and clearing pear cache, neither of
those fixed this problem

Is this Filter.php file part of Pear? Maybe PHPUnit isn't able to find
it because my pear isn't working properly? When I run 'pear' in the
terminal it appears to be working just fine.

Thanks for any help.

On Oct 24, 2:35 pm, euromark  wrote:
> I dont install it at all and just drop the necessary files in /vendors
> works like a charm :)
>
> On 24 Okt., 22:23, andrewperk  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I have PHPUnit 3.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 me PHPUnit is
> > 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 recognize phpunit?  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-24 Thread andrewperk
Thanks Euromark, I'll give that a try..

On Oct 24, 2:35 pm, euromark  wrote:
> I dont install it at all and just drop the necessary files in /vendors
> works like a charm :)
>
> On 24 Okt., 22:23, andrewperk  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I have PHPUnit 3.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 me PHPUnit is
> > 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 recognize phpunit?  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-24 Thread euromark
I dont install it at all and just drop the necessary files in /vendors
works like a charm :)



On 24 Okt., 22:23, andrewperk  wrote:
> Hello,
>
> I have PHPUnit 3.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 me PHPUnit is
> 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 recognize phpunit?  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0

2011-09-22 Thread José Lorenzo
For models returning objects in 2.0 you should use this 
plugin: https://github.com/lorenzo/MongoCake It currently works exclusively 
with MongoDb but it is planned to work with relational databases very soon.

These are the slides explaining how the plugin 
works http://www.slideshare.net/josezap1/mongo-cake-plugin-for-cakephp-20

Cheers

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0

2011-09-22 Thread WebbedIT
I don't think Cake 2 will go fully to data objects rather than arrays,
but the following talk by Jose Lorenzo @ CakeFest 2011 may be of
interest to you:
http://cakefest.org/schedule/using-the-mongocake-plugin-for-cakephp-20-jose-lorenzo-rodriguez

Larry is working on encoding all the videos and will be uploading them
in the near future so you can see this talk for yourself.

HTH, Paul

On Sep 21, 7:35 pm, iphone5  wrote:
> I heard rumors that we are turning search result into object list
> instead of array.
> Is it comming soon? As English is not my mother tongue, it is very
> difficult to find
> spelling mistakes, whereas if it was object I can just depend on auto-
> complete.

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php