<commit_before><?php

namespace Oro\Bundle\SearchBundle\Test\Functional\Api;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class RestApiTest extends WebTestCase
{
    protected $_client;

    public function setUp()
    {
        $this->_client = static::createClient();
    }

    public function testApi()
    {
        $this->_client->request('GET', 'api/rest/latest/search');

        $response = $this->_client->getResponse();

        $this->assertJsonResponse($response, 200);
    }

    protected function tearDown()
    {
        unset($this->_client);
    }

    protected function assertJsonResponse($response, $statusCode = 200)
    {
        $this->assertEquals(
            $statusCode, $response->getStatusCode(),<commit_msg>BAP-73 Search API Tests Coverage  - added new Acme DemoSearchBundle<commit_after><?php

namespace Acme\Bundle\DemoSearchBundle\Test\Functional\Api;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class RestApiTest extends WebTestCase
{
    protected $_client;

    public function setUp()
    {
        $this->_client = static::createClient();
    }

    public function testApi()
    {
        $this->_client->request('GET', 'api/rest/latest/search');

        $response = $this->_client->getResponse();

        $this->assertJsonResponse($response, 200);
    }

    protected function tearDown()
    {
        unset($this->_client);
    }

    protected function assertJsonResponse($response, $statusCode = 200)
    {
        $this->assertEquals(
            $statusCode, $response->getStatusCode(),
{'fraction_non_alphanumeric': 0.12845215157353887, 'fraction_numerical': 0.00899165061014772, 'mean_word_length': 3.0678851174934727, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6441020', 'n_tokens_mistral': 452, 'n_tokens_neox': 431, 'n_words': 81}