On 20.02.2012, at 03:29, Shoan Motwani wrote:

> Hi All,
> 
> I am evaluating the feasibility of using unit testing for an upcoming
> project. When I tried running the tests against the sample app, I got
> the following errors. I don't have a trac account, so wasn't able to
> file a ticket there.

Trac is in read-only mode for the migration to GitHub.


> P.S.: +1 for
> AgaviBaseConstraintBecausePhpunitSucksAtBackwardsCompatibility naming. :)
> 
> Peace,
> Shoan.
> 
> 
>> [shoan@nirvana:~/Sites/sandbox/agavi/1.0b/samples/test]$ php
>> run-tests.php PHPUnit 3.6.10 by Sebastian Bergmann.
>> 
>> ......................................EEEEEE.E...F.
>> 
>> Time: 9 seconds, Memory: 14.75Mb
>> 
>> There were 7 errors:
>> 
>> 
>> --
>> 
>> 
>> There was 1 failure:
>> 
>> 1) LoginFlowTest::testValidWriteRequest
>> Failed asserting that false is true.
>> 
>> /Users/shoan/Sites/sandbox/agavi/1.0b/src/testing/AgaviFlowTestCase.class.php:120
>> /Users/shoan/Sites/sandbox/agavi/1.0b/samples/test/tests/flow/LoginFlowTest.php:17
>> 
>> FAILURES!
>> Tests: 51, Assertions: 115, Failures: 1, Errors: 7.

Not sure what you're doing there, works fine for me:

> localhost:test dzuelke$ php run-tests.php 
> PHPUnit 3.6.10 by Sebastian Bergmann.
> 
> ...................................................
> 
> Time: 6 seconds, Memory: 11.00Mb
> 
> OK (51 tests, 122 assertions)

This is on the latest 1.0 from SVN. Same result for 1.0.7. Update your install 
and maybe also clear any caches manually.

David


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to