Esempio n. 1
0
 /**
  * Test the clearArguments method.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testClearArguments()
 {
     $this->assertEmpty($this->instance->clearArguments());
     $arguments = array('test' => array('foo' => 'bar', 'test' => 'test'), 'foo' => new \stdClass());
     $event = new Event('test', $arguments);
     $oldArguments = $event->clearArguments();
     $this->assertSame($oldArguments, $arguments);
     $this->assertFalse($event->hasArgument('test'));
     $this->assertFalse($event->hasArgument('foo'));
 }