Permalink
Browse files

Fix unit tests error

Fix unit tests error
  • Loading branch information...
blanchonvincent committed Sep 8, 2012
1 parent b278ea4 commit 611e92a8c8c178841811b090bd749a386db7c8b6
@@ -18,7 +18,7 @@
* @subpackage UnitTests
* @group Zend_Paginator
*/
-class FactoryTest extends \PHPUnit_Framework_TestCase
+class AdapterPluginManagerTest extends \PHPUnit_Framework_TestCase
{
protected $adapaterPluginManager;
@@ -12,6 +12,7 @@
use Zend\Paginator;
use Zend\Paginator\Adapter;
+use ZendTest\Paginator\TestAsset\TestArrayAggregate;
/**
* @category Zend
@@ -42,12 +43,4 @@ public function testCanFactoryPaginatorWithStringAdapterAggregate()
$paginator = Paginator\Factory::Factory(null, new TestArrayAggregate);
$this->assertInstanceOf('Zend\Paginator\Adapter\ArrayAdapter', $paginator->getAdapter());
}
-}
-
-class TestArrayAggregate implements Paginator\AdapterAggregateInterface
-{
- public function getPaginatorAdapter()
- {
- return new Adapter\ArrayAdapter(array(1, 2, 3, 4));
- }
}
@@ -23,6 +23,7 @@
use Zend\Paginator\Exception;
use Zend\View;
use Zend\View\Helper;
+use ZendTest\Paginator\TestAsset\TestArrayAggregate;
/**
* @category Zend
@@ -796,11 +797,3 @@ public function testGetCacheId()
}
}
-
-class TestArrayAggregate implements Paginator\AdapterAggregateInterface
-{
- public function getPaginatorAdapter()
- {
- return new Adapter\ArrayAdapter(array(1, 2, 3, 4));
- }
-}
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Zend Framework (http://framework.zend.com/)
+ *
+ * @link http://github.com/zendframework/zf2 for the canonical source repository
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ * @package Zend_Paginator
+ */
+
+namespace ZendTest\Paginator\TestAsset;
+
+use Zend\Paginator;
+use Zend\Paginator\Adapter;
+
+/**
+ * @category Zend
+ * @package Zend_Paginator
+ * @subpackage UnitTests
+ */
+class TestArrayAggregate implements Paginator\AdapterAggregateInterface
+{
+ public function getPaginatorAdapter()
+ {
+ return new Adapter\ArrayAdapter(array(1, 2, 3, 4));
+ }
+}

0 comments on commit 611e92a

Please sign in to comment.