phpOpenTracker/phpOpenTracker/Tests/API PageImpressions.php,NONE,1.1 ReturningVisitors.php,NONE,1.1 Top.php,NONE,1.1 AllTests.php,1.3,1.4 SearchEngines.php,1.3,1.4 Visits.php,1.3,1.4 AverageVisits.php,1.3,NONE LimitSearchEngines.php,1.3,NONE LimitSearchKeywords.php,1.3,NONE LimitTopAdditionalData.php,1.3,NONE LimitTopDocument.php,1.3,NONE LimitTopEntryDocument.php,1.3,NONE LimitTopExitDocument.php,1.3,NONE LimitTopExitTarget.php,1.3,NONE LimitTopHost.php,1.3,NONE LimitTopOperatingSystem.php,1.3,NONE LimitTopReferer.php,1.3,NONE LimitTopUserAgent.php,1.3,NONE NumOneTimeVisitors.php,1.3,NONE NumReturnVisits.php,1.3,NONE NumReturningVisitors.php,1.3,NONE NumUniqueVisitors.php,1.3,NONE PageImpressionsConstraintDocument.php,1.3,NONE PageImpressionsConstraintWeekday.php,1.3,NONE SearchCombinedConstraintHost.php,1.3,NONE SearchKeywords.php,1.3,NONE TopAdditionalDat a.php,1.3,NONE TopD
Sebastian Bergmann <[email protected]> Mon, 01 Mar 2004 20:48:02 +0000
| Newsgroups | gmane.comp.web.phpopentracker.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Tests/API
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4315/phpOpenTracker/Tests/API
Modified Files:
AllTests.php SearchEngines.php Visits.php
Added Files:
PageImpressions.php ReturningVisitors.php Top.php
Removed Files:
AverageVisits.php LimitSearchEngines.php
LimitSearchKeywords.php LimitTopAdditionalData.php
LimitTopDocument.php LimitTopEntryDocument.php
LimitTopExitDocument.php LimitTopExitTarget.php
LimitTopHost.php LimitTopOperatingSystem.php
LimitTopReferer.php LimitTopUserAgent.php
NumOneTimeVisitors.php NumReturnVisits.php
NumReturningVisitors.php NumUniqueVisitors.php
PageImpressionsConstraintDocument.php
PageImpressionsConstraintWeekday.php
SearchCombinedConstraintHost.php SearchKeywords.php
TopAdditionalData.php TopDocument.php TopEntryDocument.php
TopExitDocument.php TopExitTarget.php TopHost.php
TopOperatingSystem.php TopReferer.php TopUserAgent.php
VisitsConstraintEntryDocument.php
VisitsConstraintExitDocument.php
VisitsConstraintExitTarget.php VisitsConstraintHost.php
VisitsConstraintOperatingSystem.php
VisitsConstraintReferer.php VisitsConstraintUserAgent.php
Log Message:
Flush.
Index: Visits.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Tests/API/Visits.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Visits.php 24 Jan 2004 20:54:41 -0000 1.3
--- Visits.php 1 Mar 2004 20:48:00 -0000 1.4
***************
*** 24,27 ****
--- 24,125 ----
class phpOpenTracker_Tests_API_Visits extends PHPUnit_Framework_TestCase {
public function testVisits() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits'
+ )
+ );
+
+ $this->assertEquals(3, $result);
+ }
+
+ public function testVisitsConstraintEntryDocument() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits',
+ 'constraints' => array(
+ 'entry_document' => 'Test Document 1'
+ )
+ )
+ );
+
+ $this->assertEquals(1, $result);
+ }
+
+ public function testVisitsConstraintExitDocument() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits',
+ 'constraints' => array(
+ 'exit_document' => 'Test Document 3'
+ )
+ )
+ );
+
+ $this->assertEquals(1, $result);
+ }
+
+ public function testVisitsConstraintExitTarget() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits',
+ 'constraints' => array(
+ 'exit_target' => 'www.phpopentracker.de'
+ )
+ )
+ );
+
+ $this->assertEquals(1, $result);
+ }
+
+ public function testVisitsConstraintHost() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits',
+ 'constraints' => array(
+ 'host' => 'wopr'
+ )
+ )
+ );
+
+ $this->assertEquals(2, $result);
+ }
+
+ public function testVisitsConstraintOperatingSystem() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits',
+ 'constraints' => array(
+ 'operating_system' => 'Linux [unknown version]'
+ )
+ )
+ );
+
+ $this->assertEquals(1, $result);
+ }
+
+ public function testVisitsConstraintReferer() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits',
+ 'constraints' => array(
+ 'referer' => 'www.phpopentracker.de'
+ )
+ )
+ );
+
+ $this->assertEquals(1, $result);
+ }
+
+ public function testVisitsConstraintUserAgent() {
+ $result = phpOpenTracker::get(
+ array(
+ 'api_call' => 'visits',
+ 'constraints' => array(
+ 'user_agent' => 'Internet Explorer 6.x'
+ )
+ )
+ );
+
+ $this->assertEquals(1, $result);
}
}
--- TopAdditionalData.php DELETED ---
Index: SearchEngines.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Tests/API/SearchEngines.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SearchEngines.php 24 Jan 2004 20:52:31 -0000 1.3
--- SearchEngines.php 1 Mar 2004 20:48:00 -0000 1.4
***************
*** 23,28 ****
--- 23,40 ----
class phpOpenTracker_Tests_API_SearchEngines extends PHPUnit_Framework_TestCase {
+ public function testLimitSearchEngines() {
+ }
+
+ public function testLimitSearchKeywords() {
+ }
+
public function testSearchEngines() {
}
+
+ public function testSearchKeywords() {
+ }
+
+ public function testSearchCombinedConstraintHost() {
+ }
}
--- NumReturningVisitors.php DELETED ---
--- PageImpressionsConstraintWeekday.php DELETED ---
--- TopReferer.php DELETED ---
--- VisitsConstraintHost.php DELETED ---
--- LimitTopOperatingSystem.php DELETED ---
--- TopOperatingSystem.php DELETED ---
--- TopEntryDocument.php DELETED ---
--- VisitsConstraintEntryDocument.php DELETED ---
--- VisitsConstraintReferer.php DELETED ---
--- NumOneTimeVisitors.php DELETED ---
--- NEW FILE: Top.php ---
<?php
//
// phpOpenTracker - The Website Traffic and Visitor Analysis Solution
//
// Copyright 2000 - 2004 Sebastian Bergmann. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $Id: Top.php,v 1.1 2004/03/01 20:48:00 bergmann Exp $
//
require_once 'PHPUnit/Framework/TestCase.php';
class phpOpenTracker_Tests_API_Top extends PHPUnit_Framework_TestCase {
public function testLimitTopAdditionalData() {
}
public function testLimitTopDocument() {
}
public function testLimitTopEntryDocument() {
}
public function testLimitTopExitDocument() {
}
public function testLimitTopExitTarget() {
}
public function testLimitTopHost() {
}
public function testLimitTopOperatingSystem() {
}
public function testLimitTopReferer() {
}
public function testLimitTopUserAgent() {
}
public function testTopAdditionalData() {
}
public function testTopDocument() {
}
public function testTopEntryDocument() {
}
public function testTopExitDocument() {
}
public function testTopExitTarget() {
}
public function testTopHost() {
}
public function testTopOperatingSystem() {
}
public function testTopReferer() {
}
public function testTopUserAgent() {
}
}
//
// "phpOpenTracker essenya, gul meletya;
// Sebastian carneron PHP."
//
?>
--- TopHost.php DELETED ---
--- TopExitDocument.php DELETED ---
--- LimitSearchKeywords.php DELETED ---
--- NEW FILE: PageImpressions.php ---
<?php
//
// phpOpenTracker - The Website Traffic and Visitor Analysis Solution
//
// Copyright 2000 - 2004 Sebastian Bergmann. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $Id: PageImpressions.php,v 1.1 2004/03/01 20:48:00 bergmann Exp $
//
require_once 'PHPUnit/Framework/TestCase.php';
class phpOpenTracker_Tests_API_PageImpressions extends PHPUnit_Framework_TestCase {
public function testPageImpressions() {
$result = phpOpenTracker::get(
array(
'api_call' => 'page_impressions'
)
);
$this->assertEquals(6, $result);
}
public function testPageImpressionsConstraintDocument() {
$result = phpOpenTracker::get(
array(
'api_call' => 'page_impressions',
'constraints' => array(
'document' => 'Test Document 1'
)
)
);
$this->assertEquals(1, $result);
}
public function testPageImpressionsConstraintWeekday() {
$result = phpOpenTracker::get(
array(
'api_call' => 'page_impressions',
'constraints' => array(
'weekday' => 'Saturday'
)
)
);
$this->assertEquals(6, $result);
}
}
//
// "phpOpenTracker essenya, gul meletya;
// Sebastian carneron PHP."
//
?>
--- LimitSearchEngines.php DELETED ---
--- NumUniqueVisitors.php DELETED ---
--- SearchCombinedConstraintHost.php DELETED ---
--- LimitTopExitTarget.php DELETED ---
--- TopExitTarget.php DELETED ---
--- LimitTopEntryDocument.php DELETED ---
--- LimitTopExitDocument.php DELETED ---
--- VisitsConstraintUserAgent.php DELETED ---
--- VisitsConstraintExitTarget.php DELETED ---
--- LimitTopReferer.php DELETED ---
--- NumReturnVisits.php DELETED ---
--- VisitsConstraintOperatingSystem.php DELETED ---
--- LimitTopAdditionalData.php DELETED ---
Index: AllTests.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Tests/API/AllTests.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AllTests.php 24 Jan 2004 20:47:58 -0000 1.3
--- AllTests.php 1 Mar 2004 20:48:00 -0000 1.4
***************
*** 27,68 ****
require_once 'PHPUnit/TextUI/TestRunner.php';
! require_once 'phpOpenTracker/Tests/API/AverageVisits.php';
! require_once 'phpOpenTracker/Tests/API/LimitSearchEngines.php';
! require_once 'phpOpenTracker/Tests/API/LimitSearchKeywords.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopAdditionalData.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopDocument.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopEntryDocument.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopExitDocument.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopExitTarget.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopHost.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopOperatingSystem.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopReferer.php';
! require_once 'phpOpenTracker/Tests/API/LimitTopUserAgent.php';
! require_once 'phpOpenTracker/Tests/API/NumOneTimeVisitors.php';
! require_once 'phpOpenTracker/Tests/API/NumReturningVisitors.php';
! require_once 'phpOpenTracker/Tests/API/NumReturnVisits.php';
! require_once 'phpOpenTracker/Tests/API/NumUniqueVisitors.php';
! require_once 'phpOpenTracker/Tests/API/PageImpressionsConstraintDocument.php';
! require_once 'phpOpenTracker/Tests/API/PageImpressionsConstraintWeekday.php';
! require_once 'phpOpenTracker/Tests/API/SearchCombinedConstraintHost.php';
require_once 'phpOpenTracker/Tests/API/SearchEngines.php';
! require_once 'phpOpenTracker/Tests/API/SearchKeywords.php';
! require_once 'phpOpenTracker/Tests/API/TopAdditionalData.php';
! require_once 'phpOpenTracker/Tests/API/TopDocument.php';
! require_once 'phpOpenTracker/Tests/API/TopEntryDocument.php';
! require_once 'phpOpenTracker/Tests/API/TopExitDocument.php';
! require_once 'phpOpenTracker/Tests/API/TopExitTarget.php';
! require_once 'phpOpenTracker/Tests/API/TopHost.php';
! require_once 'phpOpenTracker/Tests/API/TopOperatingSystem.php';
! require_once 'phpOpenTracker/Tests/API/TopReferer.php';
! require_once 'phpOpenTracker/Tests/API/TopUserAgent.php';
require_once 'phpOpenTracker/Tests/API/Visits.php';
- require_once 'phpOpenTracker/Tests/API/VisitsConstraintEntryDocument.php';
- require_once 'phpOpenTracker/Tests/API/VisitsConstraintExitDocument.php';
- require_once 'phpOpenTracker/Tests/API/VisitsConstraintExitTarget.php';
- require_once 'phpOpenTracker/Tests/API/VisitsConstraintHost.php';
- require_once 'phpOpenTracker/Tests/API/VisitsConstraintOperatingSystem.php';
- require_once 'phpOpenTracker/Tests/API/VisitsConstraintReferer.php';
- require_once 'phpOpenTracker/Tests/API/VisitsConstraintUserAgent.php';
require_once 'phpOpenTracker.php';
--- 27,35 ----
require_once 'PHPUnit/TextUI/TestRunner.php';
! require_once 'phpOpenTracker/Tests/API/PageImpressions.php';
! require_once 'phpOpenTracker/Tests/API/ReturningVisitors.php';
require_once 'phpOpenTracker/Tests/API/SearchEngines.php';
! require_once 'phpOpenTracker/Tests/API/Top.php';
require_once 'phpOpenTracker/Tests/API/Visits.php';
require_once 'phpOpenTracker.php';
***************
*** 75,116 ****
$suite = new PHPUnit_Framework_TestSuite('phpOpenTracker API');
! $suite->addTestSuite(new Reflection_Class('AverageVisits'));
! $suite->addTestSuite(new Reflection_Class('LimitSearchEngines'));
! $suite->addTestSuite(new Reflection_Class('LimitSearchKeywords'));
! $suite->addTestSuite(new Reflection_Class('LimitTopAdditionalData'));
! $suite->addTestSuite(new Reflection_Class('LimitTopDocument'));
! $suite->addTestSuite(new Reflection_Class('LimitTopEntryDocument'));
! $suite->addTestSuite(new Reflection_Class('LimitTopExitDocument'));
! $suite->addTestSuite(new Reflection_Class('LimitTopExitTarget'));
! $suite->addTestSuite(new Reflection_Class('LimitTopHost'));
! $suite->addTestSuite(new Reflection_Class('LimitTopOperatingSystem'));
! $suite->addTestSuite(new Reflection_Class('LimitTopReferer'));
! $suite->addTestSuite(new Reflection_Class('LimitTopUserAgent'));
! $suite->addTestSuite(new Reflection_Class('NumOneTimeVisitors'));
! $suite->addTestSuite(new Reflection_Class('NumReturningVisitors'));
! $suite->addTestSuite(new Reflection_Class('NumReturnVisits'));
! $suite->addTestSuite(new Reflection_Class('NumUniqueVisitors'));
! $suite->addTestSuite(new Reflection_Class('PageImpressionsConstraintDocument'));
! $suite->addTestSuite(new Reflection_Class('PageImpressionsConstraintWeekday'));
! $suite->addTestSuite(new Reflection_Class('SearchCombinedConstraintHost'));
$suite->addTestSuite(new Reflection_Class('SearchEngines'));
! $suite->addTestSuite(new Reflection_Class('SearchKeywords'));
! $suite->addTestSuite(new Reflection_Class('TopAdditionalData'));
! $suite->addTestSuite(new Reflection_Class('TopDocument'));
! $suite->addTestSuite(new Reflection_Class('TopEntryDocument'));
! $suite->addTestSuite(new Reflection_Class('TopExitDocument'));
! $suite->addTestSuite(new Reflection_Class('TopExitTarget'));
! $suite->addTestSuite(new Reflection_Class('TopHost'));
! $suite->addTestSuite(new Reflection_Class('TopOperatingSystem'));
! $suite->addTestSuite(new Reflection_Class('TopReferer'));
! $suite->addTestSuite(new Reflection_Class('TopUserAgent'));
$suite->addTestSuite(new Reflection_Class('Visits'));
- $suite->addTestSuite(new Reflection_Class('VisitsConstraintEntryDocument'));
- $suite->addTestSuite(new Reflection_Class('VisitsConstraintExitDocument'));
- $suite->addTestSuite(new Reflection_Class('VisitsConstraintExitTarget'));
- $suite->addTestSuite(new Reflection_Class('VisitsConstraintHost'));
- $suite->addTestSuite(new Reflection_Class('VisitsConstraintOperatingSystem'));
- $suite->addTestSuite(new Reflection_Class('VisitsConstraintReferer'));
- $suite->addTestSuite(new Reflection_Class('VisitsConstraintUserAgent'));
return $suite;
--- 42,50 ----
$suite = new PHPUnit_Framework_TestSuite('phpOpenTracker API');
! $suite->addTestSuite(new Reflection_Class('PageImpressions'));
! $suite->addTestSuite(new Reflection_Class('ReturningVisitors'));
$suite->addTestSuite(new Reflection_Class('SearchEngines'));
! $suite->addTestSuite(new Reflection_Class('Top'));
$suite->addTestSuite(new Reflection_Class('Visits'));
return $suite;
--- LimitTopDocument.php DELETED ---
--- VisitsConstraintExitDocument.php DELETED ---
--- TopDocument.php DELETED ---
--- NEW FILE: ReturningVisitors.php ---
<?php
//
// phpOpenTracker - The Website Traffic and Visitor Analysis Solution
//
// Copyright 2000 - 2004 Sebastian Bergmann. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $Id: ReturningVisitors.php,v 1.1 2004/03/01 20:48:00 bergmann Exp $
//
require_once 'PHPUnit/Framework/TestCase.php';
class phpOpenTracker_Tests_API_ReturningVisitors extends PHPUnit_Framework_TestCase {
public function testAverageVisits() {
}
public function testNumReturnVisits() {
}
public function testNumReturningVisitors() {
}
public function testNumOneTimeVisitors() {
}
public function testNumUniqueVisitors() {
}
}
//
// "phpOpenTracker essenya, gul meletya;
// Sebastian carneron PHP."
//
?>
--- PageImpressionsConstraintDocument.php DELETED ---
--- LimitTopHost.php DELETED ---
--- SearchKeywords.php DELETED ---
--- LimitTopUserAgent.php DELETED ---
--- AverageVisits.php DELETED ---
--- TopUserAgent.php DELETED ---
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click