public function testStopPropagation() { $rawTitle = ' Hello world!!! '; $this->filters->on('before_output_title', 'trim'); $this->filters->on('before_output_title', function ($value) { throw (new StopPropagation())->setValue($value); }); $this->filters->on('before_output_title', [$this, 'customFilterHandler']); $title = $this->filters->filter('before_output_title', $rawTitle); self::assertEquals('Hello world!!!', $title); }