These are chat archives for ushahidi/Community

30th
Oct 2015
Ushbot
@ushbot
Oct 30 2015 02:51
[Robbie Mackay, Ushahidi] .. I'm really hating Mockery right now.. going in circles trying to right a relatively basic test.
[Robbie Mackay, Ushahidi] I guess this is cos I'm trying to test existing code so I can refactor, instead of changing code to be easy to test first.
[Robbie Mackay, Ushahidi] :/
Ushbot
@ushbot
Oct 30 2015 04:09
[Robbie Mackay, Ushahidi] finally reached the refactoring bit..
[Robbie Mackay, Ushahidi] at least the horror of phpunit is now paying off
Ushbot
@ushbot
Oct 30 2015 05:08
[Jason Mule, Ushahidi] is this cumbersome because of the work flow of making old code testable?
[Jason Mule, Ushahidi] or are we saying that phpunit is just not fun to use even if you are starting :-)
Ushbot
@ushbot
Oct 30 2015 06:41
[Angela Oduor Lungati, Ushahidi] Oi! Happy Birthday @Robbie :)
Ushbot
@ushbot
Oct 30 2015 09:35
[Juliana Rotich, Ushahidi] Happy happy birthday @Robbie
Ushbot
@ushbot
Oct 30 2015 09:53
[Jess Shorland, Ushahidi] https://ramen.is/

[Link]

<p><b><a href="[https://ramen.is/](https://ramen.is/)">Ramen: Understand Your Customers and Build Better Products</a></b></p>

<p>The best way for SaaS Product Teams to learn about their customers, ask those customers questions, and discuss features and ideas with them.</p>

Ushbot
@ushbot
Oct 30 2015 10:17
[Jess Shorland, Ushahidi] anyone used ramen before?
Ushbot
@ushbot
Oct 30 2015 18:33
[Nathaniel Manning, Ushahidi] only eaten it
Ushbot
@ushbot
Oct 30 2015 20:14
[Robbie Mackay, Ushahidi] @Jason PHPUnit is just horrible.
[Robbie Mackay, Ushahidi] I found some better alternatives AFTER I'd finished last night
[Jason Mule, Ushahidi] oh cool :-)
Ushbot
@ushbot
Oct 30 2015 20:19
[Robbie Mackay, Ushahidi] http://kahlan.readthedocs.org/en/latest/

[Robbie Mackay, Ushahidi] http://kahlan.readthedocs.org/en/latest/
[Link]

<p><b><a href="[http://kahlan.readthedocs.org/en/latest/](http://kahlan.readthedocs.org/en/latest/)">Kahlan documentation</a></b></p>

<p>— The Unit/BDD PHP Test Framework for Freedom, Truth, and Justice —</p>

[Robbie Mackay, Ushahidi] Does jasmine style syntax.. theres a couple of others I'm looking at to
Ushbot
@ushbot
Oct 30 2015 20:34
[Robbie Mackay, Ushahidi] part of the problem is that Mockery is fairly awkward
[Robbie Mackay, Ushahidi] Prophecy doesn't seem much better
[Robbie Mackay, Ushahidi] http://peridot-php.github.io/ <- is another good option for a test framework

[Link]

<p><b><a href="[http://peridot-php.github.io/](http://peridot-php.github.io/)">Peridot PHP - Event driven BDD test framework for PHP!</a></b></p>

<p>Peridot is a simple and flexible BDD/TDD testing tool for PHP 5.4+</p>

[Robbie Mackay, Ushahidi] but.. I kinda want something that'll cover all bases. To avoid having behat, phpspec and something else in every repo
Ushbot
@ushbot
Oct 30 2015 20:57
[Robbie Mackay, Ushahidi] .. oh this looks much closer to what I wanted: http://phake.readthedocs.org

[Link]

<p><b><a href="[http://phake.readthedocs.org/en/latest/](http://phake.readthedocs.org/en/latest/)">Welcome to Phake - PHP Mocking Framework’s documentation! — Phake - PHP Mocking Framework 1.0.3 documentation</a></b></p>

<p>© Copyright 2014, Mike Lively [m@digitalsandwich.com](m@digitalsandwich.com).</p>

Ushbot
@ushbot
Oct 30 2015 21:05
[Jason Mule, Ushahidi] Peridot looks good.
Ushbot
@ushbot
Oct 30 2015 21:12
[Robbie Mackay, Ushahidi] Kahlan does some cool stuff. but I'm a little wary of a tool that tries to do everything..
[Robbie Mackay, Ushahidi] phake has nice syntax for mocking.. but I'm not sure it'd handle mocking out public static methods ie. Recurly_Account::get('blah') .. which is what I was doing yesterday
[Robbie Mackay, Ushahidi] Mocking out libs that aren't built for DI is tricky
[Robbie Mackay, Ushahidi] anyway. I should go have a saturday
[Jason Mule, Ushahidi] cool, thanks for the links.