You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace Faker\Test\Provider;
-
- use Faker\Generator;
- use Faker\Provider\Company;
- use Faker\Provider\Lorem;
-
- class CompanyTest extends \PHPUnit_Framework_TestCase
- {
- /**
- * @var Generator
- */
- private $faker;
-
- public function setUp()
- {
- $faker = new Generator();
- $faker->addProvider(new Company($faker));
- $faker->addProvider(new Lorem($faker));
- $this->faker = $faker;
- }
-
- public function testJobTitle()
- {
- $jobTitle = $this->faker->jobTitle();
- $pattern = '/^[A-Za-z]+$/';
- $this->assertRegExp($pattern, $jobTitle);
- }
- }
|