makasim / sfphpunitplugin Goto Github PK
View Code? Open in Web Editor NEWIntegrate phpunit framework with symfony one
License: MIT License
Integrate phpunit framework with symfony one
License: MIT License
The generation of AllTests.php was removed in this commit:
Is there any reason why it was removed?
Thanks,
Chris
I got this error, when executing ./symfony phpunit:init
Class 'PHPUnit_Util_File' not found in /Users/letuananh/Quable/pim-api/plugins/sfPhpunitPlugin/lib/loader/sfPhpunitBaseTestLoader.php on line 152
Infos:
Symfony 1.4, propel
MacOS
Hi!
in symfony phpunit:init I get this error :
PHP Warning: require_once(PHPUnit/Extensions/SeleniumTestCase.php): failed to open stream: No such file or directory in /home/xyz/projects/sshfs/www/2.1/plugins/sfPhpunitPlugin/config/autoload_3.5.php on line 4
PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/SeleniumTestCase.php' (include_path='/home/xyz/projects/paasilinna-sshfs/www/2.1/lib/vendor:.:/usr/share/php:/usr/share/pear') in /home/xyz/projects/sshfs/www/2.1/plugins/sfPhpunitPlugin/config/autoload_3.5.php on line 4
´´´
I had to uncomment **require_once 'PHPUnit/Extensions/SeleniumTestCase.php';** in **autoload_3.5.php**
configuring ci using sfPhpunitPlugin I faced the very strange bug. Task
./symfony phpunitdoesn't return codes which notify whether the tests passed or failed.
That is very basic functionality of xUnit frameworks I suppose
I have multiple connections with different databases. The fixture()->clean() method only work with doctrine connection
I wrote some fixtures to use with Doctrine, but when I call the clean method, it shows me this error:
Doctrine_Adapter_Exception: ORA-00922: missing or invalid option : SET FOREIGN_KEY_CHECKS = 0;
It seems that Oracle doesn't support such configuration. I'm trying to figure out a solution for this.
symfony phpunit:create-models -t="doctrine" creates all testcase files as "extends sfPhpunitDoctrineTestCase" but that class is never defined anywhere in the plugin files.
If I change the generated method signature to be:
".... extends sBasefPhpunitTestCase implements sfPhpunitFixtureDoctrineAggregator"
it appears to fix the problem, but I'm not sure if the best way to fix it is this way, or to include the sfPhpunitDoctrineTestCase as an abstract class somewhere in the include path for the tests.
Hi.
I've added some method to this class. I don't know if you are ok with these methods. I was tired of repeating myself. I have thought before to create a subclass of sfBasePhpunitAmfTestCase but maybe it's better to add them to your class.
I think these methods are explicits but I can send you an example, and a pull request.
diff --git a/plugins/sfPhpunitPlugin/lib/testcase/sfBasePhpunitAmfTestCase.class.php b/plugins/sfPhpunitPlugin/lib/testcase/sfBasePhpunitAmfTestCase.class.php
--- a/plugins/sfPhpunitPlugin/lib/testcase/sfBasePhpunitAmfTestCase.class.php
+++ b/plugins/sfPhpunitPlugin/lib/testcase/sfBasePhpunitAmfTestCase.class.php
@@ -132,4 +132,36 @@
return new sfPhpunitAmfService($this->_amfservice, $client);
}
+
throw new Exception('Value object package and/or classname not set');
Plugin crashes site if PHPUnit didn't install in the system
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.