~ballot/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/guzzle/tests/Event/AbstractEventTest.php

  • Committer: Benjamin Allot
  • Date: 2020-07-02 16:31:38 UTC
  • Revision ID: benjamin.allot@canonical.com-20200702163138-qyk6njanak5uw2pg
Revert to revno 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
namespace GuzzleHttp\Tests\Event;
 
4
 
 
5
class AbstractEventTest extends \PHPUnit_Framework_TestCase
 
6
{
 
7
    public function testStopsPropagation()
 
8
    {
 
9
        $e = $this->getMockBuilder('GuzzleHttp\Event\AbstractEvent')
 
10
            ->getMockForAbstractClass();
 
11
        $this->assertFalse($e->isPropagationStopped());
 
12
        $e->stopPropagation();
 
13
        $this->assertTrue($e->isPropagationStopped());
 
14
    }
 
15
}