You are here

public function ContextTest::testContainsFound in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

ContextTest
@covers SebastianBergmann\RecursionContext\Context

Namespace

SebastianBergmann\RecursionContext

Code

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));
}