public function ContextTest::testContainsFound in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/sebastian/recursion-context/tests/ContextTest.php \SebastianBergmann\RecursionContext\ContextTest::testContainsFound()
@covers SebastianBergmann\RecursionContext\Context::contains @uses SebastianBergmann\RecursionContext\Context::add @depends testAdd @dataProvider valuesProvider
File
- vendor/
sebastian/ recursion-context/ tests/ ContextTest.php, line 127
Class
Namespace
SebastianBergmann\RecursionContextCode
public function testContainsFound($value, $key) {
$this->context
->add($value);
$this
->assertEquals($key, $this->context
->contains($value));
// Test we get the same key on subsequent calls
$this
->assertEquals($key, $this->context
->contains($value));
}