当前位置: 首页>>代码示例>>PHP>>正文


PHP PHPUnit_Framework_Assert::assertNotContains方法代码示例

本文整理汇总了PHP中PHPUnit_Framework_Assert::assertNotContains方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_Assert::assertNotContains方法的具体用法?PHP PHPUnit_Framework_Assert::assertNotContains怎么用?PHP PHPUnit_Framework_Assert::assertNotContains使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHPUnit_Framework_Assert的用法示例。


在下文中一共展示了PHPUnit_Framework_Assert::assertNotContains方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: processAssert

 /**
  * Assert that deleted customers address is not displayed on backend during order creation.
  *
  * @param SalesOrderIndex $orderIndex
  * @param SalesOrderCreateIndex $orderCreateIndex
  * @param Address $deletedAddress
  * @param Customer $customer
  * @return void
  */
 public function processAssert(SalesOrderIndex $orderIndex, SalesOrderCreateIndex $orderCreateIndex, Address $deletedAddress, Customer $customer)
 {
     $orderIndex->open()->getPageActionsBlock()->addNew();
     $orderCreateIndex->getCustomerGrid()->selectCustomer($customer);
     $orderCreateIndex->getStoreBlock()->selectStoreView();
     \PHPUnit_Framework_Assert::assertNotContains($this->prepareAddress($deletedAddress), $orderCreateIndex->getCreateBlock()->getBillingAddressForm()->getExistingAddresses(), 'Deleted address is present on backend during order creation');
 }
开发者ID:chucky515,项目名称:Magento-CE-Mirror,代码行数:16,代码来源:AssertAddressDeletedBackend.php

示例2: theFieldShouldNotHaveAnErrorContaining

 /**
  * @Then the field :name should not have an error containing :message
  */
 public function theFieldShouldNotHaveAnErrorContaining($name, $message)
 {
     $field = $this->assertSession()->fieldExists($name);
     $parent = $field->getParent();
     if (false === stripos($parent->getAttribute('class'), $this->fieldContainerClass)) {
         $parent = $parent->getParent();
     }
     Assert::assertNotContains($message, $parent->getText());
 }
开发者ID:treehouselabs,项目名称:behat-common,代码行数:12,代码来源:FormContext.php

示例3: processAssert

 /**
  * Assert that created CMS block non visible on frontend category page.
  *
  * @param CmsIndex $cmsIndex
  * @param CmsBlock $cmsBlock
  * @param CatalogCategoryView $catalogCategoryView
  * @param FixtureFactory $fixtureFactory
  * @return void
  */
 public function processAssert(CmsIndex $cmsIndex, CmsBlock $cmsBlock, CatalogCategoryView $catalogCategoryView, FixtureFactory $fixtureFactory)
 {
     $category = $fixtureFactory->createByCode('catalogCategory', ['dataSet' => 'default_subcategory', 'data' => ['display_mode' => 'Static block and products', 'landing_page' => $cmsBlock->getTitle()]]);
     $category->persist();
     $cmsIndex->open();
     $cmsIndex->getTopmenu()->selectCategory($category->getName());
     $categoryViewContent = $catalogCategoryView->getViewBlock()->getText();
     $cmsBlockContent = explode("\n", $categoryViewContent);
     \PHPUnit_Framework_Assert::assertNotContains($cmsBlock->getContent(), $cmsBlockContent);
 }
开发者ID:cewolf2002,项目名称:magento,代码行数:19,代码来源:AssertCmsBlockNotOnCategoryPage.php

示例4: responseShouldContain

 /**
  * @Given /^response should (?P<not>|not )contain "([^"]*)"$/
  */
 public function responseShouldContain($not = '', $expectedValue)
 {
     $shouldNotExist = !empty($not);
     $value = $this->decodeJson($this->lastResponse->getContent());
     $value = is_array($value) ? array_keys($value) : $value;
     if ($shouldNotExist) {
         \PHPUnit_Framework_Assert::assertNotContains($expectedValue, $value);
     } else {
         \PHPUnit_Framework_Assert::assertContains($expectedValue, $value);
     }
 }
开发者ID:RuslanZavacky,项目名称:url-shortener-api,代码行数:14,代码来源:ApiContext.php

示例5: setStatusTestingApp

 protected function setStatusTestingApp($enabled)
 {
     $this->sendingTo($enabled ? 'post' : 'delete', '/cloud/apps/testing');
     $this->theHTTPStatusCodeShouldBe('200');
     $this->theOCSStatusCodeShouldBe('100');
     $this->sendingTo('get', '/cloud/apps?filter=enabled');
     $this->theHTTPStatusCodeShouldBe('200');
     if ($enabled) {
         PHPUnit_Framework_Assert::assertContains('testing', $this->response->getBody()->getContents());
     } else {
         PHPUnit_Framework_Assert::assertNotContains('testing', $this->response->getBody()->getContents());
     }
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:13,代码来源:AppConfiguration.php

示例6: assertNotContains

/**
 * Asserts that a haystack does not contain a needle.
 *
 * @param  mixed   $needle
 * @param  mixed   $haystack
 * @param  string  $message
 * @param  boolean $ignoreCase
 * @param  boolean $checkForObjectIdentity
 * @since  Method available since Release 2.1.0
 */
function assertNotContains($needle, $haystack, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE)
{
    return PHPUnit_Framework_Assert::assertNotContains($needle, $haystack, $message, $ignoreCase, $checkForObjectIdentity);
}
开发者ID:nbalonso,项目名称:MunkiFace,代码行数:14,代码来源:Functions.php

示例7: doesNotContain

 public function doesNotContain($needle)
 {
     Assert::assertNotContains($needle, $this->actual, $this->description);
     return $this;
 }
开发者ID:dekeysoft,项目名称:pu-tester,代码行数:5,代码来源:StringMatcher.php

示例8: userIsNotSubadminOfGroup

 /**
  * @Given /^user "([^"]*)" is not a subadmin of group "([^"]*)"$/
  * @param string $user
  * @param string $group
  */
 public function userIsNotSubadminOfGroup($user, $group)
 {
     $fullUrl = $this->baseUrl . "v2.php/cloud/groups/{$group}/subadmins";
     $client = new Client();
     $options = [];
     if ($this->currentUser === 'admin') {
         $options['auth'] = $this->adminUser;
     }
     $this->response = $client->get($fullUrl, $options);
     $respondedArray = $this->getArrayOfSubadminsResponded($this->response);
     sort($respondedArray);
     PHPUnit_Framework_Assert::assertNotContains($user, $respondedArray);
     PHPUnit_Framework_Assert::assertEquals(200, $this->response->getStatusCode());
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:19,代码来源:Provisioning.php

示例9: dontSeeInThisFile

 /**
  * Checks If opened file doesn't contain `text` in it
  *
  * ``` php
  * <?php
  * $I->openFile('composer.json');
  * $I->seeInThisFile('codeception/codeception');
  * ?>
  * ```
  *
  * @param $text
  */
 public function dontSeeInThisFile($text)
 {
     \PHPUnit_Framework_Assert::assertNotContains($text, $this->file, "text {$text} in currently opened file");
 }
开发者ID:pfz,项目名称:codeception,代码行数:16,代码来源:Filesystem.php

示例10: dontSeeFileFound

 /**
  * Checks if file does not exists in path on the remote FTP/SFTP system
  *
  * @param $filename
  * @param string $path
  */
 public function dontSeeFileFound($filename, $path = '')
 {
     $files = $this->grabFileList($path);
     $this->debug("don't see file: {$filename}");
     \PHPUnit_Framework_Assert::assertNotContains($filename, $files);
 }
开发者ID:samuelmoncarey,项目名称:codeception,代码行数:12,代码来源:FTP.php

示例11: dontSeeResultContains

 /**
  * Checks that the result of the last execution doesn't contain a value.
  *
  * @param $value
  * @deprecated
  */
 public function dontSeeResultContains($value)
 {
     \PHPUnit_Framework_Assert::assertNotContains($value, $this->last_result);
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:10,代码来源:Unit.php

示例12: assert_string_not_present

 public function assert_string_not_present($expected_missing_string, $message)
 {
     $page_text = $this->get_text();
     PHPUnit_Framework_Assert::assertNotContains($expected_missing_string, $page_text, $message);
 }
开发者ID:kingsj,项目名称:core,代码行数:5,代码来源:WebDriverTestCase.php

示例13: toContain

 public function toContain($needle)
 {
     if ($this->negate) {
         a::assertNotContains($needle, $this->actual);
     } else {
         a::assertContains($needle, $this->actual);
     }
 }
开发者ID:jasonmccreary,项目名称:expect,代码行数:8,代码来源:Expect.php

示例14: iShouldNotSeeInTheCommandOutput

 /**
  * @Then /^I should not see "([^"]*)" in the command output$/
  */
 public function iShouldNotSeeInTheCommandOutput($pattern)
 {
     PHPUnit_Framework_Assert::assertNotContains($pattern, $this->process->getOutput());
 }
开发者ID:kieljohn,项目名称:TenantBundle,代码行数:7,代码来源:CommandContext.php

示例15: iShouldNotSeeTheFollowing

 /**
  * @Then /^I should not see the following:$/
  */
 public function iShouldNotSeeTheFollowing(PyStringNode $string)
 {
     $output = $this->getOutput();
     \PHPUnit_Framework_Assert::assertNotContains($string->getRaw(), $output);
 }
开发者ID:hason,项目名称:phpcr-shell,代码行数:8,代码来源:ContextBase.php


注:本文中的PHPUnit_Framework_Assert::assertNotContains方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。