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
user { "gildas": | |
ensure => "present", | |
managehome => true, | |
before => Exec["install_dotfiles"] | |
} | |
package { "git": | |
ensure => installed, | |
before => Exec["install_dotfiles"] | |
} |
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 | |
//PHPUnit | |
public function testApply() { | |
$mock = $this->getMock('My\Foo\Class', array('apply')); | |
$mock->expects($this->any()) | |
->method('apply') | |
->with('foo') | |
->will($this->returnValue('bar')); | |
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 | |
/** | |
* @param stdClass $object | |
*/ | |
function it_should_do_stuff($object) | |
{ | |
$object->getBar()->willReturn('foo'); | |
$stuffedObject = $this->doStuff($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 | |
function formatAsString($data) | |
{ | |
if (is_array($data)) { | |
$result = array(); | |
foreach ($data as $key => $value) { | |
$result[] = sprintf('%s => %s', formatAsString($key), formatAsString($value)); | |
} |
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
<?xml version="1.0"?> | |
<testsuites> | |
<testsuite name="Pim\Bundle\CatalogBundle\Manager\LocaleManager" id="/home/gildas/projects/pim/spec/Pim/Bundle/CatalogBundle/Manager/LocaleManagerSpec.php" tests="12" failures="0" errors="0" time="0.11581373214722"> | |
<testcase name="provides locale from the request if it has been set" classname="Pim\Bundle\CatalogBundle\Manager\LocaleManager" time="0.031787157058716"/> | |
</testsuite> | |
</testsuites> |
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
➜ pim git:(master) ✗ composer.phar --version | |
Composer version a023c7929aba08861bea56e9cb371b2d31a1eb5b 2014-04-10 13:28:36 | |
➜ pim git:(master) ✗ composer.phar require foo/foo --no-update -v | |
Please provide a version constraint for the foo/foo requirement: dev-master | |
[ErrorException] | |
Undefined variable: childrenClean |
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 | |
/** | |
* What I want to achieve | |
*/ | |
class FooSpec | |
{ | |
function it_does_stuff($collab) | |
{ | |
$collab->doCollabStuf()->willReturn('foo'); // Returns foo the first time |
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 | |
/** | |
* @ORM/Entity | |
*/ | |
class Product | |
{ | |
/** | |
* @OneToMany(targetEntity="Price", mappedBy="product", cascade={"refresh"}) | |
*/ |
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
composer.lock | |
/vendor |
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
const FILTER_BY_NAME = 'FILTER_BY_NAME'; | |
filterByName(name) { | |
return (dispatch, getState, ga) => { | |
ga('send', 'event', 'Catalog', 'filter by name', name); | |
return { type: FILTER_BY_NAME, name }; | |
} | |
} | |
export default { |
OlderNewer