Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Sep 13, 2021
1 parent d634221 commit 6603252
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/BaseHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@ public function testUsesDefaults()

$this->assertSame('bar', $handler->foo);
}

public function testIsset()
{
$handler = new class () extends BaseHandler {
protected $attributes = [
'fruit' => 'banana',
];
};

$this->assertTrue(isset($handler->fruit));
$this->assertFalse(isset($handler->meat));
}
}

0 comments on commit 6603252

Please sign in to comment.