Пример #1
0
 public static function setUpBeforeClass()
 {
     self::$staticClient = new Client(['base_url' => 'http://localhost:8000', 'defaults' => ['exceptions' => false]]);
     self::$history = new History();
     self::$staticClient->getEmitter()->attach(self::$history);
     self::bootKernel();
 }
Пример #2
0
 protected function setUp()
 {
     $this->client = self::$staticClient;
     // reset the history
     self::$history = array();
     $this->purgeDatabase();
 }