This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* $result sera un tableau de lignes: | |
* nombre_occurences chemin/vers/fichier.php:Ma_Classe::instance | |
*/ | |
exec('grep -ro --include="*.php" "\([A-Za-z_]*\)::instance" *|sort|uniq -c|grep -v 1', $result); | |
$infections = []; | |
array_map( | |
function($line) use (&$infections) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Admin_SuggestionAchatControllerTestCase extends Admin_AbstractControllerTestCase { | |
public function setUp() { | |
parent::setUp(); | |
Storm_Test_ObjectWrapper::onLoaderOfModel('SuggestionAchat') | |
->whenCalled('findAllBy') | |
->with(['order' => 'date_creation']) | |
->answers([ | |
SuggestionAchat::newInstanceWithId(2, ['date_creation' => '2012-03-01', | |
'titre' => 'Harry Potter', | |
'auteur' => 'J.K.Rowling', |