/**
  * Assert that the response view is missing a piece of bound data.
  *
  * @param  string  $key
  * @return void
  */
 public function assertViewMissing($key)
 {
     $response = $this->client->getResponse();
     if (!isset($response->original) || !$response->original instanceof View) {
         return assertTrue(false, 'The response was not a view.');
     }
     assertArrayNotHasKey($key, $response->original->getData());
 }
 /**
  * @Then Assert the array :arg1 not has key :key
  * @param array $arg1
  * @param string $key
  */
 public function assertArrayNotHasKey(array $arg1, $key)
 {
     assertArrayNotHasKey($key, $arg1, sprintf("Assert the array [%s] don't have key [%s], but have [%s].", print_r($arg1, true), $key, join(',', array_keys($arg1))));
 }
Exemplo n.º 3
0
 /**
  * @Then /^there should not be "([^"]*)" parameter$/
  */
 public function thereShouldNotBeParameter($key)
 {
     assertArrayNotHasKey($key, $this->containerParameters);
 }