Ejemplo n.º 1
0
 public function setup()
 {
     $this->container = new \Mockery\Container(\Mockery::getDefaultGenerator(), \Mockery::getDefaultLoader());
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     $this->container = new \Mockery\Container(\Mockery::getDefaultGenerator(), \Mockery::getDefaultLoader());
     $this->mock = $this->container->mock('foo');
 }
Ejemplo n.º 3
0
 public function testByDefaultOnAMockDoesSquatWithoutExpectations()
 {
     $container = new \Mockery\Container(\Mockery::getDefaultGenerator(), \Mockery::getDefaultLoader());
     $mock = $container->mock('f')->byDefault();
 }
Ejemplo n.º 4
0
 public function setup()
 {
     $this->container = new Mockery\Container(Mockery::getDefaultGenerator(), new Mockery\Loader\EvalLoader());
 }
Ejemplo n.º 5
0
 public function __construct(Generator $generator = null, LoaderInterface $loader = null)
 {
     $this->_generator = $generator ?: \Mockery::getDefaultGenerator();
     $this->_loader = $loader ?: \Mockery::getDefaultLoader();
 }