本文整理汇总了PHP中Expectations::shouldNotBeNull方法的典型用法代码示例。如果您正苦于以下问题:PHP Expectations::shouldNotBeNull方法的具体用法?PHP Expectations::shouldNotBeNull怎么用?PHP Expectations::shouldNotBeNull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Expectations
的用法示例。
在下文中一共展示了Expectations::shouldNotBeNull方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: from
public function from($dropdown_list_locator)
{
Expectations::shouldNotBeNull($this->__getLastVisitedLocation(), "Nowhere to pick from... Please specify where to find the selection.");
$this->__getSelenium()->select($dropdown_list_locator, 'label=' . $this->__getLastVisitedLocation());
$this->__resetLastVisitedLocation();
}
示例2: unchecked
public function unchecked()
{
Expectations::shouldNotBeNull($this->__getLastVisitedLocation(), "No element was specified. Did you forget the call to shouldSee ?");
Expectations::shouldBeFalse($this->__getSelenium()->isChecked($this->__getLastVisitedLocation()));
$this->__resetLastVisitedLocation();
}
示例3: ShouldNotBeNullShouldBehaveLikeAssertNotNull
/**
* @test
*/
public function ShouldNotBeNullShouldBehaveLikeAssertNotNull()
{
self::assertNotNull("Something not null");
Expectations::shouldNotBeNull("Something not null");
try {
self::assertNotNull(null);
throw new Exception("assertNotNull should fail if something null");
} catch (PHPUnit_Framework_ExpectationFailedException $e) {
}
try {
Expectations::shouldNotBeNull(null);
throw new Exception("shoulNotdBeNull should fail if something null");
} catch (PHPUnit_Framework_ExpectationFailedException $e) {
}
}