本文整理汇总了PHP中UnitTester::assertNotEmpty方法的典型用法代码示例。如果您正苦于以下问题:PHP UnitTester::assertNotEmpty方法的具体用法?PHP UnitTester::assertNotEmpty怎么用?PHP UnitTester::assertNotEmpty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnitTester
的用法示例。
在下文中一共展示了UnitTester::assertNotEmpty方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testRequestConstruct
public function testRequestConstruct()
{
$this->tester->assertNotEmpty($this->request->getGet());
$this->tester->assertNotEmpty($this->request->getPost());
$this->tester->assertNotEmpty($this->request->getCookie());
$this->tester->assertNotEmpty($this->request->getServer());
}
示例2: testGetAuthUrlWithExtraPermissions
public function testGetAuthUrlWithExtraPermissions()
{
$permissions = ['hola', 'adios'];
$url = $this->facebook->getAuthUrl(null, $permissions);
$this->tester->assertNotEmpty($url);
$this->tester->assertContains('&scope=', $url);
$this->tester->assertContains(implode(',', $this->facebook->default_permissions), $url);
$this->tester->assertContains(implode(',', $permissions), $url);
}
示例3: testRun
public function testRun()
{
$result = 'Hello world';
$route = new router\Container(['test/route/{name:\\d}' => function ($request) use($result) {
$this->tester->assertNotEmpty($request);
$this->tester->assertTrue($request instanceof router\Request);
return $result;
}]);
$out = $route->route('test/route/1');
$this->tester->assertEquals($out, $result);
}