InterNations\Component\HttpMock\Tests\PHPUnit\HttpMockPHPUnitIntegrationTest::testMatchRegex PHP Метод

testMatchRegex() публичный Метод

public testMatchRegex ( )
    public function testMatchRegex()
    {
        $this->http->mock->when()->methodIs($this->http->matches->regex('/(GET|POST)/'))->then()->body('response')->end();
        $this->http->setUp();
        $this->assertSame('response', (string) $this->http->client->get('/')->send()->getBody());
        $this->assertSame('response', (string) $this->http->client->get('/')->send()->getBody());
    }