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" encoding="UTF-8"?><!DOCTYPE html | |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="theme.css" type="text/css" /> | |
</head> | |
<body> |
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
interface MapperInterface | |
{ | |
public function map(); | |
} | |
abstract class BaseUserMapper | |
{ | |
public function __construct($userEntity) | |
{ | |
$this->user = $userEntity; |
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 | |
class MyClass | |
{ | |
public function test($dependency) | |
{ | |
$dependency->mockedMethod('I have random arguments'); | |
$dependency->mockedMethod( | |
array( | |
'choices' => 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 | |
$resolverMock = m::mock('Symfony\Component\OptionsResolver\OptionsResolver'); | |
$resolverMock->shouldReceive('setNormalizers'); | |
$resolverMock->shouldReceive('setAllowedTypes'); | |
$resolverMock->shouldReceive('setDefaults')->atMost()->once()->withAnyArgs(); | |
$resolverMock->shouldReceive('setDefaults')->atLeast()->once()->with( | |
array( | |
'label' => 'MyLabel', | |
'choices' => array( | |
'1' => 'Option1', |
NewerOlder