Skip to content

Commit 1378318

Browse files
committed
updated
1 parent d686a57 commit 1378318

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_posts/2016-03-11-even-more-features-for-codeception-2.2.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ DataFactory module should solve this with fixture generators, called factories.
1818
This is how it works. You define rules to generate models:
1919

2020
```php
21+
<?php
2122
use League\FactoryMuffin\Faker\Facade as Faker;
2223

2324
$fm->define(User::class)->setDefinitions([
@@ -76,6 +77,7 @@ In PHPUnit you could have one test to be executed several times with different d
7677
For REST API testing this might look like:
7778

7879
```php
80+
<?php
7981
/**
8082
* @example ['/api/', 200]
8183
* @example ['/api/protected', 401]
@@ -87,6 +89,7 @@ For REST API testing this might look like:
8789
$I->sendGET($example[0]);
8890
$I->seeResponseCodeIs($example[1]);
8991
}
92+
?>
9093
```
9194

9295
Data in `@example` annotation can be defined using JSON objects, JSON-arrays, or Symfony-style annotation.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy