本文整理匯總了PHP中Phake::verifyNoInteraction方法的典型用法代碼示例。如果您正苦於以下問題:PHP Phake::verifyNoInteraction方法的具體用法?PHP Phake::verifyNoInteraction怎麽用?PHP Phake::verifyNoInteraction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Phake
的用法示例。
在下文中一共展示了Phake::verifyNoInteraction方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: it_ignores_requests_without_controller
/**
* @test
*/
public function it_ignores_requests_without_controller()
{
$request = $this->requestForController(null);
$this->listener->onKernelView($this->createEventWith($request));
\Phake::verifyNoInteraction($this->templating);
\Phake::verifyNoInteraction($this->guesser);
}
示例2: testNonMagicCallDoesNothing
public function testNonMagicCallDoesNothing()
{
$mock = $this->getMock('Phake_IMock');
$ref = array();
$this->handler->invoke($mock, 'foo', array(), $ref);
Phake::verifyNoInteraction($this->callRecorder);
}
示例3: test_no_current_user_does_nothing
public function test_no_current_user_does_nothing()
{
Phake::when($this->facade)->wp_get_current_user(Phake::anyParameters())->thenReturn(null);
$this->client->white_label_pair_callback();
Phake::verify($this->facade)->wp_get_current_user();
Phake::verifyNoFurtherInteraction($this->facade);
Phake::verifyNoInteraction($this->sdk_auth);
}
開發者ID:aenglander,項目名稱:launchkey-wordpress,代碼行數:8,代碼來源:class-launchkey-wp-native-client-white-label-pair-callback-test.php
示例4: test_launchkey_username_in_get_does_nothing
public function test_launchkey_username_in_get_does_nothing()
{
unset($_POST['launchkey_username']);
$_GET['launchkey_username'] = 'username';
$this->client->pair_callback();
Phake::verifyNoInteraction($this->facade);
Phake::verifyNoInteraction($this->sdk_auth);
}
開發者ID:aenglander,項目名稱:launchkey-wordpress,代碼行數:8,代碼來源:class-launchkey-wp-native-client-pair-callback-test.php
示例5: test_user_has_no_auth_does_not_deorbit
public function test_user_has_no_auth_does_not_deorbit()
{
$this->user->launchkey_auth = null;
$this->client->logout();
Phake::verifyNoInteraction($this->sdk_auth);
}
開發者ID:aenglander,項目名稱:launchkey-wordpress,代碼行數:6,代碼來源:class-launchkey-wp-native-client-logout-test.php
示例6: testVerifyNoInteractionPassesStrict
public function testVerifyNoInteractionPassesStrict()
{
Phake::setClient(Phake::CLIENT_PHPUNIT);
$mock = Phake::mock('stdClass');
$assertionCount = self::getCount();
Phake::verifyNoInteraction($mock);
$newAssertionCount = self::getCount();
$this->assertGreaterThan($assertionCount, $newAssertionCount);
}
示例7: test_does_nothing_when_no_nonce
public function test_does_nothing_when_no_nonce()
{
$this->wizard->verify_configuration_callback();
Phake::verifyNoInteraction($this->facade);
}
開發者ID:ThemeSurgeon,項目名稱:launchkey-wordpress,代碼行數:5,代碼來源:class-launchkey-wp-configuration-wizard-verify-configuration-callback-test.php
示例8: test_no_saml_response_does_nothing
public function test_no_saml_response_does_nothing()
{
unset($_REQUEST['SAMLResponse']);
$this->client->authenticate(null, null, null);
Phake::verifyNoInteraction($this->facade);
}
開發者ID:aenglander,項目名稱:launchkey-wordpress,代碼行數:6,代碼來源:class-launchkey-wp-sso-client-authenticate-test.php
示例9: test_does_nothing_when_no_nonce
public function test_does_nothing_when_no_nonce()
{
unset($_POST['nonce']);
$this->wizard->wizard_submit_ajax();
Phake::verifyNoInteraction($this->facade);
}
開發者ID:anthony-dandrea,項目名稱:launchkey-wordpress,代碼行數:6,代碼來源:class-launchkey-wp-configuration-wizard-submit-ajax-callback-test.php
示例10: test_does_nothing_when_no_nonce
public function test_does_nothing_when_no_nonce()
{
unset($_POST['nonce']);
$this->wizard->wizard_easy_setup_qr_code();
Phake::verifyNoInteraction($this->facade);
}
開發者ID:aenglander,項目名稱:launchkey-wordpress,代碼行數:6,代碼來源:class-launchkey-wp-configuration-wizard-qr-code-test.php
示例11: testTransactionBoundUnitOfWorkLifecycle_Rollback
public function testTransactionBoundUnitOfWorkLifecycle_Rollback()
{
$mockListener = \Phake::mock(UnitOfWorkListenerInterface::class);
$mockTransactionManager = \Phake::mock(TransactionManagerInterface::class);
\Phake::when($mockTransactionManager)->startTransaction()->thenReturn(new \stdClass());
$uow = DefaultUnitOfWork::startAndGet($mockTransactionManager);
$uow->registerListener($mockListener);
\Phake::verify($mockTransactionManager)->startTransaction();
\Phake::verifyNoInteraction($mockListener);
$uow->rollback();
\Phake::inOrder(\Phake::verify($mockTransactionManager)->rollbackTransaction(\Phake::anyParameters()), \Phake::verify($mockListener)->onRollback(\Phake::anyParameters()), \Phake::verify($mockListener)->onCleanup(\Phake::equalTo($uow)));
}