本文整理汇总了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)));
}