summaryrefslogtreecommitdiff
path: root/vendor/symfony/event-dispatcher/Tests/GenericEventTest.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-03 13:44:03 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-04 11:17:33 +0000
commit7def76c7d817a9ec81e9ae4a03a850514b1a2e1c (patch)
tree3fcf7e8236356daac44f7c17b8c0c5bc736a0926 /vendor/symfony/event-dispatcher/Tests/GenericEventTest.php
parentadfb3656b8dac8505590490f4f8aaf4bea27881b (diff)
downloadwebtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.gz
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.bz2
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.zip
Working on upgrade wizard and testing
Diffstat (limited to 'vendor/symfony/event-dispatcher/Tests/GenericEventTest.php')
-rw-r--r--vendor/symfony/event-dispatcher/Tests/GenericEventTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/vendor/symfony/event-dispatcher/Tests/GenericEventTest.php b/vendor/symfony/event-dispatcher/Tests/GenericEventTest.php
index b63f69df14..461f86161e 100644
--- a/vendor/symfony/event-dispatcher/Tests/GenericEventTest.php
+++ b/vendor/symfony/event-dispatcher/Tests/GenericEventTest.php
@@ -32,7 +32,7 @@ class GenericEventTest extends TestCase
protected function setUp()
{
$this->subject = new \stdClass();
- $this->event = new GenericEvent($this->subject, array('name' => 'Event'));
+ $this->event = new GenericEvent($this->subject, ['name' => 'Event']);
}
/**
@@ -46,7 +46,7 @@ class GenericEventTest extends TestCase
public function testConstruct()
{
- $this->assertEquals($this->event, new GenericEvent($this->subject, array('name' => 'Event')));
+ $this->assertEquals($this->event, new GenericEvent($this->subject, ['name' => 'Event']));
}
/**
@@ -55,20 +55,20 @@ class GenericEventTest extends TestCase
public function testGetArguments()
{
// test getting all
- $this->assertSame(array('name' => 'Event'), $this->event->getArguments());
+ $this->assertSame(['name' => 'Event'], $this->event->getArguments());
}
public function testSetArguments()
{
- $result = $this->event->setArguments(array('foo' => 'bar'));
- $this->assertAttributeSame(array('foo' => 'bar'), 'arguments', $this->event);
+ $result = $this->event->setArguments(['foo' => 'bar']);
+ $this->assertAttributeSame(['foo' => 'bar'], 'arguments', $this->event);
$this->assertSame($this->event, $result);
}
public function testSetArgument()
{
$result = $this->event->setArgument('foo2', 'bar2');
- $this->assertAttributeSame(array('name' => 'Event', 'foo2' => 'bar2'), 'arguments', $this->event);
+ $this->assertAttributeSame(['name' => 'Event', 'foo2' => 'bar2'], 'arguments', $this->event);
$this->assertEquals($this->event, $result);
}
@@ -99,13 +99,13 @@ class GenericEventTest extends TestCase
public function testOffsetSet()
{
$this->event['foo2'] = 'bar2';
- $this->assertAttributeSame(array('name' => 'Event', 'foo2' => 'bar2'), 'arguments', $this->event);
+ $this->assertAttributeSame(['name' => 'Event', 'foo2' => 'bar2'], 'arguments', $this->event);
}
public function testOffsetUnset()
{
unset($this->event['name']);
- $this->assertAttributeSame(array(), 'arguments', $this->event);
+ $this->assertAttributeSame([], 'arguments', $this->event);
}
public function testOffsetIsset()
@@ -127,10 +127,10 @@ class GenericEventTest extends TestCase
public function testHasIterator()
{
- $data = array();
+ $data = [];
foreach ($this->event as $key => $value) {
$data[$key] = $value;
}
- $this->assertEquals(array('name' => 'Event'), $data);
+ $this->assertEquals(['name' => 'Event'], $data);
}
}