 Laravel 3.2 Documentation.......... 74 Running Tests ............................................................................................................. 74 Calling Controllers From Tests ........................ .............................................................................. 120 x Unit Tests (More Information) .............................................................................. date, too!  Unit-Testing is an important part of Laravel. Laravel itself sports hundreds of tests to help ensure that new changes don't unexpectedly break anything. This is one of the reasons why0 码力 | 139 页 | 1.13 MB | 1 年前3 Laravel 3.2 Documentation.......... 74 Running Tests ............................................................................................................. 74 Calling Controllers From Tests ........................ .............................................................................. 120 x Unit Tests (More Information) .............................................................................. date, too!  Unit-Testing is an important part of Laravel. Laravel itself sports hundreds of tests to help ensure that new changes don't unexpectedly break anything. This is one of the reasons why0 码力 | 139 页 | 1.13 MB | 1 年前3
 Laravel 5.0 Documentation
Extending Blade xxi. Unit Testing i. Introduction ii. Defining & Running Tests iii. Test Environment iv. Calling Routes From Tests v. Mocking Facades vi. Framework Assertions vii. Helper Methods viii cinch to get started using Gulp to compile your Less, Sass, and CoffeeScript. It can even run your tests for you! For more information on Elixir, check out the full documentation. Laravel Socialite is public directory. Be sure to keep the 5.0 version of index.php . Move your tests from app/tests to the new tests directory. Copy in any other files in your project. For example, .scrutinizer0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
Extending Blade xxi. Unit Testing i. Introduction ii. Defining & Running Tests iii. Test Environment iv. Calling Routes From Tests v. Mocking Facades vi. Framework Assertions vii. Helper Methods viii cinch to get started using Gulp to compile your Less, Sass, and CoffeeScript. It can even run your tests for you! For more information on Elixir, check out the full documentation. Laravel Socialite is public directory. Be sure to keep the 5.0 version of index.php . Move your tests from app/tests to the new tests directory. Copy in any other files in your project. For example, .scrutinizer0 码力 | 242 页 | 1.44 MB | 1 年前3
 Laravel 5.6 中文文档public (应 用根目录下的 public 目录)目录下生成一个软连接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试文件,其中默认已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit 前缀后的接口或类名在服务容器中解析。在测试的时候,我们可以使用 Laravel 自带的门面 测试辅助函数来模拟这个方法调用: Tests\Feature; use App\Podcast; use Tests\TestCase; use Facades\App\Contracts\Publisher; use Illuminate\Foundation\Te 植根于测试,实际上,内置使 PHPUnit 对测试提供支持是开箱即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的 辅助方法允许你对应用进行优雅的测试。 默认情况下,tests 目录包含了两个子目录:Feature 和 Unit,分别用于功能测试和单元测试,单元测试专注于小的、相互隔离的代码,实际上, 大部分单元测试可能都是聚焦于单个方法。功能测试可用于测试较大区块的代0 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档public (应 用根目录下的 public 目录)目录下生成一个软连接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试文件,其中默认已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit 前缀后的接口或类名在服务容器中解析。在测试的时候,我们可以使用 Laravel 自带的门面 测试辅助函数来模拟这个方法调用: Tests\Feature; use App\Podcast; use Tests\TestCase; use Facades\App\Contracts\Publisher; use Illuminate\Foundation\Te 植根于测试,实际上,内置使 PHPUnit 对测试提供支持是开箱即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的 辅助方法允许你对应用进行优雅的测试。 默认情况下,tests 目录包含了两个子目录:Feature 和 Unit,分别用于功能测试和单元测试,单元测试专注于小的、相互隔离的代码,实际上, 大部分单元测试可能都是聚焦于单个方法。功能测试可用于测试较大区块的代0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 6.0 中文文档(应用根目录下的 public 目录)目录下生成一个软连 接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 测试目录 tests 目录包含自动化测试文件,其中默认已经提供了一个开箱即用 的 PHPUnit 示例;每一个测试类都要以 Test 开头,你可以通 过 phpunit 或 php vendor/bin/phpunit 前缀后的接 口或类名在服务容器中解析。在测试的时候,我们可以使用 Laravel 自带的门面测试辅助函数来模拟这个方法调用: Tests\Feature; use App\Podcast; use Tests\TestCase; use Facades\App\Contracts\Publisher; use Illuminate\Foundation\Tes 植根于测试,实际上,内置使 PHPUnit 对测试提供支持是 开箱即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还 提供了方便的辅助方法允许你对应用进行优雅的测试。 默认情况下,tests 目录包含了两个子目录:Feature 和 Unit,分 别用于功能测试和单元测试,单元测试专注于小的、相互隔离的代码, 实际上,大部分单元测试可能都是聚焦于单个方法。功能测试可用于 测试较0 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档(应用根目录下的 public 目录)目录下生成一个软连 接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 测试目录 tests 目录包含自动化测试文件,其中默认已经提供了一个开箱即用 的 PHPUnit 示例;每一个测试类都要以 Test 开头,你可以通 过 phpunit 或 php vendor/bin/phpunit 前缀后的接 口或类名在服务容器中解析。在测试的时候,我们可以使用 Laravel 自带的门面测试辅助函数来模拟这个方法调用: Tests\Feature; use App\Podcast; use Tests\TestCase; use Facades\App\Contracts\Publisher; use Illuminate\Foundation\Tes 植根于测试,实际上,内置使 PHPUnit 对测试提供支持是 开箱即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还 提供了方便的辅助方法允许你对应用进行优雅的测试。 默认情况下,tests 目录包含了两个子目录:Feature 和 Unit,分 别用于功能测试和单元测试,单元测试专注于小的、相互隔离的代码, 实际上,大部分单元测试可能都是聚焦于单个方法。功能测试可用于 测试较0 码力 | 1442 页 | 14.66 MB | 1 年前3
 Learning LaravelDatabase Transactions in Unit Test Laravel allows database to rollback all the change during the tests. For testing multiple database connections, you need to set $connectionsToTransact properties use the phpunit.xml file, which resides in the root directory of every new Laravel application. The tests directory, also in the root directory, contains the individual testing files which hold the logic portion of your application. Of course, it is your responsibility as a developer to write these tests as you build your application, but Laravel includes an example file, ExampleTest.php, to get you0 码力 | 216 页 | 1.58 MB | 1 年前3 Learning LaravelDatabase Transactions in Unit Test Laravel allows database to rollback all the change during the tests. For testing multiple database connections, you need to set $connectionsToTransact properties use the phpunit.xml file, which resides in the root directory of every new Laravel application. The tests directory, also in the root directory, contains the individual testing files which hold the logic portion of your application. Of course, it is your responsibility as a developer to write these tests as you build your application, but Laravel includes an example file, ExampleTest.php, to get you0 码力 | 216 页 | 1.58 MB | 1 年前3
 《Slides Dev Web》 03. Laravel
Record) • Migrations • Moteur de templates (Blade) • Pagination • Authentification, sessions • Mail • Tests unitaires • Extensible par packages8 (bundles) via composer Le Front Controller Architecture MVC avec StyleCI11 • Editeurs et IDE : PhpStorm, glitch12, brackets, VS Code, repl.it13, Gitpod14… • Tests : unitaires, Jmeter, Selenium, … • Outils : devtools Chrome ou FF, Emmet15, git • Doc 8http://packalyst0 码力 | 8 页 | 224.34 KB | 1 年前3 《Slides Dev Web》 03. Laravel
Record) • Migrations • Moteur de templates (Blade) • Pagination • Authentification, sessions • Mail • Tests unitaires • Extensible par packages8 (bundles) via composer Le Front Controller Architecture MVC avec StyleCI11 • Editeurs et IDE : PhpStorm, glitch12, brackets, VS Code, repl.it13, Gitpod14… • Tests : unitaires, Jmeter, Selenium, … • Outils : devtools Chrome ou FF, Emmet15, git • Doc 8http://packalyst0 码力 | 8 页 | 224.34 KB | 1 年前3
 《Slides Dev Web》02. Introduction aux frameworks PHP
réutilisables (faible couplage) • Règles de codage et d’architecture • Code sûr et efficace • Facilite les tests et la gestion de projets complexes • Utilisation de Design Patterns dès que possible • Comportement contrôleurs Smart URL & SEO Autres Services • Migrations : Evolutions de la strucutre de la BDD • Tests • Génération, validation et traitement de formulaires • Authenfication, Sessions, Permissions, Roles0 码力 | 24 页 | 1.03 MB | 1 年前3 《Slides Dev Web》02. Introduction aux frameworks PHP
réutilisables (faible couplage) • Règles de codage et d’architecture • Code sûr et efficace • Facilite les tests et la gestion de projets complexes • Utilisation de Design Patterns dès que possible • Comportement contrôleurs Smart URL & SEO Autres Services • Migrations : Evolutions de la strucutre de la BDD • Tests • Génération, validation et traitement de formulaires • Authenfication, Sessions, Permissions, Roles0 码力 | 24 页 | 1.03 MB | 1 年前3
 Laravel 5.1 中文文档createPlainMatcher 方法已经从 Blade 编译器中移 除,可以使用新的 directive 方法来为 5.1 版的 Blade 创建自定义的指令。查阅扩展 Blade 文档了解详情。 测试 在 tests/TestCase.php 文件中新增 protected 属性$baseUrl: protected $baseUrl = 'http://localhost'; 翻译文件 用于为 vendor Laravel 学院(LaravelAcademy.org)提供 59 使用的文件,framework 目录用于存放框架生成的文件和缓存,最后,logs 目录包含应用的 日志文件; tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例; vendor 目录包含 Composer 依赖; 3、App 目录 应用的核心代码位于 app 目录下,默认情况下,该目录位于命名空间 植根于测试,实际上,内置使用 PHPUnit 对测试提供支持是即开即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的帮助方法允许你对应用进行富 有表现力的测试。 tests 目录中提供了一个 ExampleTest.php 文件,安装完新的 Laravel 应用后,只需简单在 命令行运行 phpunit 来运行测试。 1.1 测试环境 运行测试的时候,Laravel0 码力 | 307 页 | 3.46 MB | 1 年前3 Laravel 5.1 中文文档createPlainMatcher 方法已经从 Blade 编译器中移 除,可以使用新的 directive 方法来为 5.1 版的 Blade 创建自定义的指令。查阅扩展 Blade 文档了解详情。 测试 在 tests/TestCase.php 文件中新增 protected 属性$baseUrl: protected $baseUrl = 'http://localhost'; 翻译文件 用于为 vendor Laravel 学院(LaravelAcademy.org)提供 59 使用的文件,framework 目录用于存放框架生成的文件和缓存,最后,logs 目录包含应用的 日志文件; tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例; vendor 目录包含 Composer 依赖; 3、App 目录 应用的核心代码位于 app 目录下,默认情况下,该目录位于命名空间 植根于测试,实际上,内置使用 PHPUnit 对测试提供支持是即开即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的帮助方法允许你对应用进行富 有表现力的测试。 tests 目录中提供了一个 ExampleTest.php 文件,安装完新的 Laravel 应用后,只需简单在 命令行运行 phpunit 来运行测试。 1.1 测试环境 运行测试的时候,Laravel0 码力 | 307 页 | 3.46 MB | 1 年前3
 Laravel 5.3 中文文档访问的目的,你还需要在 public 目录下生成一个软连接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要 以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit 植根于测试,实际上,内置使用 PHPUnit 对测试提供支持是即开即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的辅助方法允许你对应用进行富有表现力的测试。 tests 目录中提供了一个 ExampleTest.php 文件,安装完新的 Laravel 应用后,只需简单在命令 本文档由 Laravel 学院(LaravelAcademy.org)提供 清除配置缓存。 3、创建&运行测试 要创建一个新的测试用例,可以使用 Artisan 命令 make:test : php artisan make:test UserTest 该命令将会在 tests 目录下生成一个新的 UserTest 类。然后你可以使用 PHPUnit 定义测试方法。 要运行测试,只需从终端执行 phpunit 命令即可:0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档访问的目的,你还需要在 public 目录下生成一个软连接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要 以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit 植根于测试,实际上,内置使用 PHPUnit 对测试提供支持是即开即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的辅助方法允许你对应用进行富有表现力的测试。 tests 目录中提供了一个 ExampleTest.php 文件,安装完新的 Laravel 应用后,只需简单在命令 本文档由 Laravel 学院(LaravelAcademy.org)提供 清除配置缓存。 3、创建&运行测试 要创建一个新的测试用例,可以使用 Artisan 命令 make:test : php artisan make:test UserTest 该命令将会在 tests 目录下生成一个新的 UserTest 类。然后你可以使用 PHPUnit 定义测试方法。 要运行测试,只需从终端执行 phpunit 命令即可:0 码力 | 691 页 | 9.37 MB | 1 年前3 《Slides Dev Web》 04. HTML 5cache • Offline : Service Workers19 • Install Banner20 : HTTPS, WebApp Manifest, SW, 2 visits • Tests21 : Lighthouse en automatise une partie Exemples et tutos • Exemples – What PWA can do today220 码力 | 3 页 | 29.58 KB | 1 年前3 《Slides Dev Web》 04. HTML 5cache • Offline : Service Workers19 • Install Banner20 : HTTPS, WebApp Manifest, SW, 2 visits • Tests21 : Lighthouse en automatise une partie Exemples et tutos • Exemples – What PWA can do today220 码力 | 3 页 | 29.58 KB | 1 年前3
共 14 条
- 1
- 2













