Skip to content

Commit 90ee1bd

Browse files
committed
Remove calls to deprecated function assertAttributeX
1 parent f75df4d commit 90ee1bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/GenericEventTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ public function testGetArguments()
6161
public function testSetArguments()
6262
{
6363
$result = $this->event->setArguments(['foo' => 'bar']);
64-
$this->assertAttributeSame(['foo' => 'bar'], 'arguments', $this->event);
64+
$this->assertSame(['foo' => 'bar'], $this->event->getArguments());
6565
$this->assertSame($this->event, $result);
6666
}
6767

6868
public function testSetArgument()
6969
{
7070
$result = $this->event->setArgument('foo2', 'bar2');
71-
$this->assertAttributeSame(['name' => 'Event', 'foo2' => 'bar2'], 'arguments', $this->event);
71+
$this->assertSame(['name' => 'Event', 'foo2' => 'bar2'], $this->event->getArguments());
7272
$this->assertEquals($this->event, $result);
7373
}
7474

@@ -97,13 +97,13 @@ public function testOffsetGet()
9797
public function testOffsetSet()
9898
{
9999
$this->event['foo2'] = 'bar2';
100-
$this->assertAttributeSame(['name' => 'Event', 'foo2' => 'bar2'], 'arguments', $this->event);
100+
$this->assertSame(['name' => 'Event', 'foo2' => 'bar2'], $this->event->getArguments());
101101
}
102102

103103
public function testOffsetUnset()
104104
{
105105
unset($this->event['name']);
106-
$this->assertAttributeSame([], 'arguments', $this->event);
106+
$this->assertSame([], $this->event->getArguments());
107107
}
108108

109109
public function testOffsetIsset()

0 commit comments

Comments
 (0)