for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use DeGraciaMathieu\Riddler\Password;
use DeGraciaMathieu\Riddler\Criterias;
use DeGraciaMathieu\Riddler\Occurences;
class Test extends \PHPUnit\Framework\TestCase
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/** @test */
public function example()
return $this->assertTrue(true);
}
public function emptyPassword()
$pw = new Password();
$str = $pw->generate();
$this->assertEmpty($str);
public function digitPasswordOnly()
$pw->addCriteria(new Criterias\Digit(), new Occurences\Strict(10));
$this->assertNotEmpty($str);
$this->assertRegExp('/\d{10}/', $str);
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.