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
@main-font-color: red; | |
@main-link-color: green; | |
body { | |
color: @main-font-color; | |
a { | |
color: @main-link-color; | |
} | |
} |
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 | |
$steps->Then('/^it should pass with:$/', function($world, $data) { | |
try { | |
assertEquals((string) $data, $world->output); | |
} catch (\Exception $e) { | |
$exceptionDiff = \PHPUnit_Framework_TestFailure::exceptionToString($e); | |
throw new \Exception($exceptionDiff, $e->getCode(), $e); | |
} | |
}); |
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
public function normalize($object, $format, $properties = null) | |
{ | |
return $object->normalize($this, $format, $properties); | |
} |
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 | |
namespace Rj\CoreBundle\Enum; | |
abstract class Enum | |
{ | |
/** | |
* | |
* @var array | |
*/ |
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 | |
$exceptionFilter = new ExceptionFilterHandler(); | |
$exceptionFilter->allow('MyBundle\AbstractException') | |
->ignore('MyBundle\ConcreteException'); | |
$errorFilter = new ErrorFilterHandler(); | |
$errorFilter->allow(UniversalErrorCatcher_ErrorCode::E_CORE_ERROR) | |
->ignore(UniversalErrorCatcher_ErrorCode::E_ERROR); |
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 | |
$filter = new Filter(); | |
$filter->allow('MyBundle\AbstractException') | |
->ignore('MyBundle\ConcreteException'); | |
$adapter = new SwiftAdapter(); | |
$adapter->setClient(new Swift()); | |
$systemProvider = new SystemProvider(); |
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 | |
$adapter = new SwiftAdapter(new Swift()); | |
$serializer = new Serializer( | |
array(new DataHolderNormailizer), | |
array('html' => new HtmlEncoder()) | |
); | |
$configuration = new DataHolder(); |
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 | |
Ett fel har inträffat när produkten skulle sparas | |
Vi hoppades naturligtvis att du aldrig skulle behöva se den här sidan, men den innehåller värdefull felsökningsinformation. Spara den och skicka in den till kundtjänst så kommer vi snabbare kunna lösa problemet. | |
[ | |
{ | |
"subject_class":"ProductSettings", | |
"subject_id":{ |
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 | |
$loader = $this->getMock('Symfony\Component\Translation\Loader\LoaderInterface'); | |
$loader | |
->expects($this->exactly(2)) | |
->method('load') | |
->with( | |
$this->logicalOr( | |
$this->equalTo($resource1), | |
$this->equalTo($resource2) | |
), |
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 | |
$this->customer = Mockery::finalMock('\\Customer'); | |
$this->customer->shouldReceive('__get')->with('email')->once()->andReturn($email_address); | |
$this->customer->shouldReceive('__get')->with('first_name')->once()->andReturn($first_name); | |
$this->customer->shouldReceive('__get')->with('last_name')->once()->andReturn($sur_name); | |
$this->customer->shouldReceive('__get')->with('phone_number')->once()->andReturn($phone_number); | |
$this->customer->shouldReceive('__get')->with('cell_phone_number')->once()->andReturn($cell_phone_number); |
OlderNewer