<commit_before><?php
/**
 * @author    <NAME> <<EMAIL>>
 * @copyright 2016
 *
 * @link      https://www.github.com/janhuang
 * @link      http://www.fast-d.cn/
 */


use FastD\Server;


class ServerTest extends TestCase
{
    public function createServer()
    {
        $app = $this->createApplication();

        return new Server($app);
    }

    public function testServerInit()
    {
        $server = $this->createServer();

        $server->bootstrap();

        $this->assertEquals($server->getSwoole()->setting, [
            'pid_file' => '',
            'worker_num' => 10
        ]);
    }
}<commit_msg>fixed testing<commit_after><?php
/**
 * @author    <NAME> <<EMAIL>>
 * @copyright 2016
 *
 * @link      https://www.github.com/janhuang
 * @link      http://www.fast-d.cn/
 */


use FastD\Server;


class ServerTest extends TestCase
{
    public function createServer()
    {
        $app = $this->createApplication();

        return new Server($app);
    }

    public function testServerInit()
    {
        $server = $this->createServer();

        $server->bootstrap();

        $this->assertEquals($server->getSwoole()->setting, [
            'pid_file' => '/tmp/fast-d.pid',
            'worker_num' => 10
        ]);
    }
}
{'fraction_non_alphanumeric': 0.16840417000801924, 'fraction_numerical': 0.009623095429029671, 'mean_word_length': 2.135678391959799, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 25, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '6572355', 'n_tokens_mistral': 404, 'n_tokens_neox': 380, 'n_words': 70}