<commit_before><?php

namespace WyriHaximus\WyriHaximus\StaticMap\Tests;

use WyriHaximus\StaticMap\Loader\Async;

class AsyncTest extends AbstractLoaderTest {

    public function setUp() {
        parent::setUp();

        $this->loader = new Async();
    }

    public function tearDown() {
        unset($this->loader);

        parent::tearDown();
    }

}
<commit_msg>Test remote file's also yield a promise #13<commit_after><?php

namespace WyriHaximus\WyriHaximus\StaticMap\Tests;

use WyriHaximus\StaticMap\Loader\Async;

class AsyncTest extends AbstractLoaderTest {

    public function setUp() {
        parent::setUp();

        $this->loader = new Async();
    }

    public function tearDown() {
        unset($this->loader);

        parent::tearDown();
    }

    public function testAddRemoteImagePromise() {
        $this->assertInstanceOf('React\Promise\PromiseInterface', $this->loader->addImage('http://example.com/black.jpg'));
    }

}

{'fraction_non_alphanumeric': 0.12930135557872785, 'fraction_numerical': 0.0020855057351407717, 'mean_word_length': 3.247787610619469, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '4302855', 'n_tokens_mistral': 305, 'n_tokens_neox': 292, 'n_words': 54}