You are here

public function ContextTest::testAddFails in Zircon Profile 8

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

@covers SebastianBergmann\RecursionContext\Context::add @uses SebastianBergmann\RecursionContext\InvalidArgumentException @dataProvider failsProvider

File

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

Class

ContextTest
@covers SebastianBergmann\RecursionContext\Context

Namespace

SebastianBergmann\RecursionContext

Code

public function testAddFails($value) {
  $this
    ->setExpectedException('SebastianBergmann\\RecursionContext\\Exception', 'Only arrays and objects are supported');
  $this->context
    ->add($value);
}