Exemplo n.º 1
0
 protected function setUp()
 {
     $this->mockedRequest = Mockery::mock('Neat\\Http\\Request');
     $this->mockedData = Mockery::mock('Neat\\Data\\Data');
     $this->subject = new Router();
     $this->subject->setRoutes(['test' => ['pattern' => '/name/:first/:last', 'defaultValues' => ['first' => 'first', 'last' => 'last'], 'requiredParams' => ['first', 'last'], 'httpMethods' => ['POST']]]);
     $this->subject->request = $this->mockedRequest;
     parent::setUp();
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     $this->mockedRequest = Mockery::mock('Neat\\Http\\Request');
     $this->mockedFileLoader = Mockery::mock('Neat\\Loader\\FileLoader');
     $this->mockedPluginLoader = Mockery::mock('Neat\\Loader\\PluginLoader');
     $this->subject = new Controller();
     $this->subject->request = $this->mockedRequest;
     $this->subject->fileLoader = $this->mockedFileLoader;
     $this->subject->pluginLoader = $this->mockedPluginLoader;
     parent::setUp();
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     $this->subject = new Component();
     parent::setUp();
 }