mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-25 02:22:57 +01:00
15 lines
412 B
PHP
15 lines
412 B
PHP
<?php
|
|
namespace GuzzleHttp\Tests\Event;
|
|
|
|
class AbstractEventTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testStopsPropagation()
|
|
{
|
|
$e = $this->getMockBuilder('GuzzleHttp\Event\AbstractEvent')
|
|
->getMockForAbstractClass();
|
|
$this->assertFalse($e->isPropagationStopped());
|
|
$e->stopPropagation();
|
|
$this->assertTrue($e->isPropagationStopped());
|
|
}
|
|
}
|