Example #1
0
 function quatz(TestCase $tc)
 {
     let('result')->be(6 * 6);
     $tc->assertEquals(get('result'), '36');
     foo($tc);
     bar($tc);
     $tc->assertEquals(get('result'), '36');
 }
 /**
  * ClientTest constructor.
  *
  * @param null|string $name
  * @param array $data
  * @param string $dataName
  */
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->uri = new Uri(getenv('BBB_URI'));
     $this->secret = getenv('BBB_SECRET');
     $this->endpoint = getenv('BBB_ENDPOINT');
     $this->client = new Client($this->uri, $this->secret, $this->endpoint);
 }
 public function setUp()
 {
     parent::setUp();
     $this->connection = Mockery::mock(AMQPStreamConnection::class);
     $this->channel = Mockery::mock(AMQPChannel::class);
     $this->connection->shouldReceive('channel')->andReturn($this->channel);
     $this->config = ['queue' => str_random(), 'queue_params' => ['passive' => false, 'durable' => true, 'exclusive' => false, 'auto_delete' => false], 'exchange_params' => ['name' => 'exchange_name', 'type' => 'direct', 'passive' => false, 'durable' => true, 'auto_delete' => false], 'exchange_declare' => true, 'queue_declare_bind' => true];
     $this->queue = new RabbitMQQueue($this->connection, $this->config);
 }
Example #4
0
 public function setUp()
 {
     // @session_start();
     $this->path = __DIR__ . '/../../betasyntax/';
     parent::setUp();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->provider = new FacebookProvider();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->generator = new FixtureGenerator();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->serializer = $this->createSerializer();
 }
Example #8
0
 protected function setUp()
 {
     parent::setUp();
 }
Example #9
0
 protected function setUp()
 {
     parent::setUp();
     $this->data = new I18n();
 }
Example #10
0
 /**
  * Создание модели формы. Явно задаем контракт валидации, т.к. у данной модели нет своего контракта.
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$form = new Form(self::$contract);
 }
 /**
  * Clean up after test.
  * By default the application created with [[mockApplication]] will be destroyed.
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->destroyApplication();
 }