function setUp() { parent::setUp(); UAIDCookie::resetState(); UAIDCookie::setUpUAID(); $this->uaid = UAIDCookie::getSecureCookie(); $this->assertNotNull($this->uaid); $logger = $this->getMock('Logger', array('log')); $this->world = new Feature_World($logger); $this->user_id = 991; $this->setLoggedUserId(null); $this->assertNull(Std::loggedUser()); }
public function setUp($params = []) { parent::setUp(); UAIDCookie::resetState(); UAIDCookie::setUpUAID(); $this->uaid = UAIDCookie::getSecureCookie(); $this->assertNotNull($this->uaid); $logger = $this->getMock('Logger', array('log')); $this->world = new Feature_World($logger); $this->userId = 991; $this->setLoggedUserId(null); $this->assertNull(Std::loggedUser()); $this->server = $params['server'] ? $params['server'] : []; $this->globals = $params['global'] ? $params['global'] : []; }
public function testAssertDataSetsEqual() { $expected = $this->getMock('PHPUnit_Extensions_Database_DataSet_IDataSet'); $actual = $expected; PHPUnit_Extensions_MultipleDatabase_TestCase::assertDataSetsEqual($expected, $actual); }
public function testAssertDataSetsEqual() { $expected = new PHPUnit_Extensions_Database_DataSet_CompositeDataSet(); $actual = $expected; PHPUnit_Extensions_MultipleDatabase_TestCase::assertDataSetsEqual($expected, $actual); }