function setUp() { $this->toolkit = new ToolkitDeleteServiceNodeCommandTestVersion($this); $this->tree = new MockTree($this); $this->toolkit->setReturnReference('getTree', $this->tree); Limb::registerToolkit($this->toolkit); }
function setUp() { $this->filter = new SiteObjectControllerFilterTestVersion($this); $this->toolkit = new MockLimbToolkit($this); $this->site_object = new MockSiteObject($this); $this->request = new MockRequest($this); $this->filter_chain = new MockFilterChain($this); $this->datasource = new MockRequestedObjectDatasource($this); $this->controller = new MockSiteObjectController($this); $this->behaviour = new MockSiteObjectBehaviour($this); $this->response = new MockResponse($this); $this->datasource->expectOnce('setRequest', array(new IsAExpectation('MockRequest'))); $this->datasource->expectOnce('fetch'); $this->toolkit->setReturnValue('getDatasource', $this->datasource, array('RequestedObjectDatasource')); $this->toolkit->setReturnValue('createSiteObject', $this->site_object, array('SiteObject')); $this->filter_chain->expectOnce('next'); $this->site_object->setReturnValue('getController', $this->controller); $this->controller->expectOnce('process', array(new IsAExpectation('MockRequest'))); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->hits_dao = new MockStatsSearchEnginesHitsReportDAO($this); $this->toolkit = new MockLimbBaseToolkitStatsSearchReportsPercentageRecordsSetTestVestion($this); $this->toolkit->setReturnReference('createDAO', $this->hits_dao, array('StatsSearchEnginesHitsReportDAO')); Limb::registerToolkit($this->toolkit); }
function setUp() { $this->ds =& new MockCountableDAO($this); $this->toolkit =& new MockLimbToolkit($this); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->ds =& new MockDAORecord($this); $this->toolkit =& new MockLimbBaseToolkit($this); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->toolkit = new MockSimpleACLBaseToolkit($this); $this->authorizer = new MockSimpleACLAuthorizer($this); $this->toolkit->setReturnReference('getAuthorizer', $this->authorizer); Limb::registerToolkit($this->toolkit, 'SimpleACL'); }
function & saveToolkit($name = 'default') { //no &, we simply make a copy $toolkit = clone(Limb :: toolkit($name)); $toolkit->reset(); Limb :: registerToolkit($toolkit, $name); return $toolkit; }
function setUp() { $this->path2id_translator = new MockPath2IdTranslator($this); $this->toolkit = new MockLimbBaseToolkit($this); $this->toolkit->setReturnReference('getPath2IdTranslator', $this->path2id_translator); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->site_object = new MockSiteObject($this); $this->tree = new MockTree($this); $this->toolkit = new MockLimbToolkit($this); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->toolkit = new ToolkitPathRecordProcessorTestVersion($this); $this->translator = new MockPath2IdTranslator($this); $this->toolkit->setReturnReference('getPath2IdTranslator', $this->translator); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->toolkit = new MockLimbToolkit($this); $this->tree = new MockTree($this); $this->decorator = new TreeDecorator($this->tree); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->object = new Object(); $this->toolkit =& Limb :: registerToolkit(new MockToolkit($this)); $this->uow = new MockUnitOfWork($this); $this->toolkit->setReturnReference('getUOW', $this->uow); }
function setUp() { $this->uow = new MockUnitOfWork($this); $this->toolkit = new ToolkitUOWFilterTestVersion($this); $this->toolkit->setReturnReference('getUOW', $this->uow); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->toolkit = new MockLimbToolkit($this); $this->response = new MockResponse($this); $this->template = new TemplateStub(); $this->toolkit->setReturnValue('getResponse', $this->response); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->tree = new MockTree($this); $this->datasource = new SingleObjectDatasource(); $this->toolkit = new MockLimbToolkit($this); $this->toolkit->setReturnValue('getTree', $this->tree); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->filter = new SimplePermissionsAuthenticationFilterTestVersion($this); $this->toolkit = new MockLimbToolkit($this); $this->datasource = new MockRequestedObjectDatasource($this); $this->request = new MockRequest($this); $this->filter_chain = new MockFilterChain($this); $this->response = new MockHttpResponse($this); Limb::registerToolkit($this->toolkit); }
function setUp() { $this->response = new MockHttpResponse($this); $this->user = new MockUser($this); $this->toolkit = new MockLimbToolkit($this); $this->toolkit->setReturnValue('getUser', $this->user); $this->toolkit->setReturnValue('getResponse', $this->response); Limb::registerToolkit($this->toolkit); $this->command = new LogoutCommand($this); }
function setUp() { parent :: setUp(); $this->tree = new MockTree($this); $this->toolkit = new MockLimbBaseToolkit($this); $this->toolkit->setReturnReference('getTree', $this->tree); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->sql = new MockComplexSelectSQL($this); $this->tree = new MockTree($this); $this->toolkit = new ToolkitTreeNodeSiblingsCriteriaTestVersion($this); $this->toolkit->setReturnReference('getTree', $this->tree); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->finder = new VersionedOneTableObjectsRawFinderTestVersion($this); $this->db_table = new MockDbTable($this); $this->toolkit = new MockLimbToolkit($this); $this->toolkit->setReturnValue('createDBTable', $this->db_table); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->filter = new FullPageCacheFilterTestVersion($this); $this->toolkit = new MockLimbToolkit($this); $this->request = new MockRequest($this); $this->filter_chain = new MockFilterChain($this); $this->response = new MockHttpResponse($this); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->toolkit = new MockLimbToolkit($this); $this->component = new SiteObjectComponentTestVersion($this); $this->request = new MockRequest($this); $this->toolkit->setReturnValue('getRequest', $this->request); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->datasource = new SiteObjectsByNodeIdsTestVersionDatasource($this); $this->tree = new MockTree($this); $this->toolkit = new MockLimbToolkit($this); $this->toolkit->setReturnValue('getTree', $this->tree); Limb :: registerToolkit($this->toolkit); }
function setUp() { $this->toolkit = new MockLimbToolkit($this); $this->tree = new MockTree($this); $this->cache = new MockCacheRegistry($this); $this->toolkit->setReturnValue('getCache', $this->cache); Limb :: registerToolkit($this->toolkit); $this->decorator = new CachingTree($this->tree); }
function setUp() { $toolkit = Limb :: toolkit(); $this->db = new SimpleDb($toolkit->getDbConnection()); $this->toolkit = new LimbBaseToolkitPath2IdTranslatorTestVersion($this); $this->tree = new MockTree($this); $this->toolkit->setReturnReference('getTree', $this->tree); Limb :: registerToolkit($this->toolkit); $this->_cleanUp(); }
function setUp() { $toolkit =& Limb::toolkit(); $this->conn =& $toolkit->getDBConnection(); $this->db = new SimpleDB($this->conn); $this->uow = new MockUnitOfWork($this); $this->translator = new MockPath2IdTranslator($this); $this->toolkit = new LimbBaseToolkitObjectMetadataDAOTestVersion($this); $this->toolkit->setReturnReference('getUOW', $this->uow); $this->toolkit->setReturnReference('getPath2IdTranslator', $this->translator); Limb::registerToolkit($this->toolkit); $this->_cleanUp(); }
function setUp() { $this->tree = new MockTree($this); $this->toolkit = new TreeNodeDataMapperTestToolkit($this); $this->toolkit->setReturnReference('getTree', $this->tree); Limb :: registerToolkit($this->toolkit); $this->db =& new SimpleDb($this->toolkit->getDbConnection()); $this->_cleanUp(); }
function setUp() { $this->user = new MockUser($this); $this->toolkit = new LimbToolkitSessionDbDriverVersion($this); $this->toolkit->setReturnReference('getUser', $this->user); $this->db =& new SimpleDb($this->toolkit->getDbConnection()); Limb :: registerToolkit($this->toolkit); $this->driver = new SessionDbDriver(); }
function setUp() { $this->user = new MockUser($this); $this->toolkit = new MockLimbToolkit($this); $this->toolkit->setReturnValue('getUser', $this->user); $this->db = DbFactory :: instance(); $this->toolkit->setReturnValue('getDB', $this->db); Limb :: registerToolkit($this->toolkit); $this->driver = new SessionDbDriver(); }
function setUp() { $this->response = new MockHttpResponse($this); $this->user = new MockUser($this); $this->dataspace = new Dataspace(); $this->authenticator = new MockAuthenticator($this); $this->toolkit = new MockLimbToolkit($this); $this->toolkit->setReturnValue('getUser', $this->user); $this->toolkit->setReturnValue('getResponse', $this->response); $this->toolkit->setReturnValue('getDataspace', $this->dataspace); $this->toolkit->setReturnValue('getAuthenticator', $this->authenticator); Limb::registerToolkit($this->toolkit); $this->command = new LoginCommandTestVersion($this); }