Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test for index
  • Loading branch information
dafeder committed Aug 20, 2021
commit 5acf28fc4c390c52bfa1822c45e9dbe7db162a33
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ vendor
composer.lock
coverage
.vscode
.phpunit*
1 change: 0 additions & 1 deletion .phpunit.result.cache

This file was deleted.

2 changes: 2 additions & 0 deletions test/OptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ public function test()
$this->assertEquals($options->return("multi"), "shalom");
$this->assertEquals($options->return("multi"), "shalom");
$this->assertNull($options->return('not-an-option'));
$options->index(2);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a dumb test, and should have an equivalent over on the ChainTest side that actually tests the functionality.

$this->assertEquals(2, $options->getIndex());
}
}