<?php

namespace ApiTest\Controller;

use Zend\Http\Request;

class ChartControllerTest extends AbstractController
{
    public function testGetValidChartStructure()
    {
        $this->dispatch('/api/chart', Request::METHOD_GET);

        $this->assertResponseStatusCode(200);

        $data = $this->getJsonResponse();
        $this->assertArrayHasKey('chart', $data);
        $this->assertArrayHasKey('series', $data);
    }
}

<?php

namespace ApiTest\Controller;

use Zend\Http\Request;

class TableControllerTest extends AbstractController
{
    public function testGetValidChartStructure()
    {
        $this->dispatch('/api/chart', Request::METHOD_GET);

        $this->assertResponseStatusCode(200);

        $data = $this->getJsonResponse();
        $this->assertArrayHasKey('chart', $data);
        $this->assertArrayHasKey('series', $data);
    }
}

--- 
+++ 
@@ -4,7 +4,7 @@
 
 use Zend\Http\Request;
 
-class TableControllerTest extends AbstractController
+class ChartControllerTest extends AbstractController
 {
     public function testGetValidChartStructure()
     {
Resolve class name conflict in tests
