protected function getRepository() { if (self::$_repository == null) { // Create the repository self::$_repository = new Repository(BaseTest::URL); } return self::$_repository; }