You are here

public function ContextTest::testAdd in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/recursion-context/tests/ContextTest.php \SebastianBergmann\RecursionContext\ContextTest::testAdd()

@covers SebastianBergmann\RecursionContext\Context::add @dataProvider valuesProvider

File

vendor/sebastian/recursion-context/tests/ContextTest.php, line 113

Class

ContextTest
@covers SebastianBergmann\RecursionContext\Context

Namespace

SebastianBergmann\RecursionContext

Code

public function testAdd($value, $key) {
  $this
    ->assertEquals($key, $this->context
    ->add($value));

  // Test we get the same key on subsequent adds
  $this
    ->assertEquals($key, $this->context
    ->add($value));
}