UnitTester::assertNotContains PHP Method

assertNotContains() public method

Checks that haystack doesn't contain needle.
See also: Codeception\Module\Asserts::assertNotContains()
public assertNotContains ( $needle, $haystack, string $message = null )
$needle
$haystack
$message string
    public function assertNotContains($needle, $haystack, $message = null)
    {
        return $this->scenario->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
    }

Usage Example

Ejemplo n.º 1
0
 public function testGetAuthUrlWithoutStateAndPermissions()
 {
     $url = $this->facebook->getAuthUrl();
     $this->tester->assertNotEmpty($url);
     $this->tester->assertNotContains('&state', $url);
     $this->tester->assertContains('&scope', $url);
     $this->tester->assertContains(implode(',', $this->facebook->default_permissions), $url);
 }
All Usage Examples Of UnitTester::assertNotContains