This file contains 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
import csv | |
import sys | |
from datetime import datetime | |
fields = ['Date completed', 'Description', 'Amount', 'Balance'] | |
data = [] | |
with open(sys.argv[1], encoding="utf-8-sig") as csvfile: | |
reader = csv.DictReader(csvfile) |
I hereby claim:
- I am mbfisher on github.
- I am mbfisher (https://keybase.io/mbfisher) on keybase.
- I have a public key ASCZLo9Z9OjS2OfqFb50eyedCya6xHOKd8sTk79pttjN3Qo
To claim this, I am signing this object:
This file contains 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 | |
require 'vendor/autoload.php'; | |
class Transformer extends League\Fractal\TransformerAbstract | |
{ | |
protected $availableIncludes = ['child']; | |
protected $defaultIncludes = ['child']; | |
public function transform($data) |
This file contains 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 | |
require 'vendor/autoload.php'; | |
$client = new Elasticsearch\Client([ | |
'hosts' => ['127.0.0.1'] | |
]); | |
echo "Resetting...\n"; | |
$index = ['index' => 'freedomclinics.com']; |
Run a test suite; phpunit -c path/to/phpunit.xml --testsuite ${name}
setMethods(array $methods)
can be called on the Mock Builder object to specify the methods that are to be replaced with a configurable test double. The behavior of the other methods is not changed. If you call setMethods(NULL), then no methods will be replaced.
setConstructorArgs(array $args)
can be called to provide a parameter array that is passed to the original class' constructor (which is not replaced with a dummy implementation by default).
setMockClassName($name)
can be used to specify a class name for the generated test double class.