You are here

public function BuilderTest::pushShouldThrowOnInvalidInput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/stack/builder/tests/unit/Stack/BuilderTest.php \Stack\BuilderTest::pushShouldThrowOnInvalidInput()

@test

File

vendor/stack/builder/tests/unit/Stack/BuilderTest.php, line 51

Class

BuilderTest
@covers Stack\Builder

Namespace

Stack

Code

public function pushShouldThrowOnInvalidInput() {
  $this
    ->setExpectedException('InvalidArgumentException', 'Missing argument(s) when calling push');
  $stack = new Builder();
  $stack
    ->push();
}