Skip to content

Commit

Permalink
reformat test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Mar 7, 2023
1 parent 9d45142 commit 0d0836b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/PHPDI/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,24 @@ public function testRecursiveAccess(): void
$this->container->set('settings', $settings);

static::assertTrue($this->container->has('settings.foo'));
static::assertEquals(['bar' => ['baz' => 'found!', 'bam' => []]], $this->container->get('settings.foo'));
static::assertEquals(
[
'bar' => [
'baz' => 'found!',
'bam' => [],
],
],
$this->container->get('settings.foo'),
);

static::assertTrue($this->container->has('settings.foo.bar'));
static::assertEquals(['baz' => 'found!', 'bam' => []], $this->container->get('settings.foo.bar'));
static::assertEquals(
[
'baz' => 'found!',
'bam' => [],
],
$this->container->get('settings.foo.bar'),
);

static::assertTrue($this->container->has('settings.foo.bar.baz'));
static::assertEquals('found!', $this->container->get('settings.foo.bar.baz'));
Expand Down

0 comments on commit 0d0836b

Please sign in to comment.