CakePHP Cookbook Documentation 5.xRunning Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Loading Fixtures in your Test Cases Fixture Factories Loading Routes in Tests Creating Routes in Tests Loading Plugins in Tests Testing Table Classes Creating a Test Method Mocking Model Methods Controller Testing a JSON Responding Controller Testing with file uploads Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Mocking Injected Dependencies0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Loading Fixtures in your Test Cases Fixture Factories Loading Routes in Tests Creating Routes in Tests Loading Plugins in Tests Testing Table Classes Creating a Test Method Mocking Model Methods Controller Testing a JSON Responding Controller Testing with file uploads Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Mocking Injected Dependencies0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 2.x
Test Case Running Tests Test Case Lifecycle Callbacks Fixtures Testing Models Testing Controllers Testing Views Testing Components Testing Helpers Creating Test Suites Creating Tests for Plugins Integration fit inside an application’s layout. For most applications, they’re HTML mixed with PHP, but they may end up as XML, CSV, or even binary data. A layout is presentation code that is wrapped around a view. $this->Form->input('title'); echo $this->Form->input('body', array('rows' => '3')); echo $this->Form->end('Save Post'); ?> We use the FormHelper to generate the opening tag for an HTML form. Here’s the HTML0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook Documentation 5.xCase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687 Testing . . . . . . . . . . . . 708 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709 Generating Tests with Bake . . . . . . . . . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790 Testing . . . . . . . . . . . . 812 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 813 Generating Tests with Bake . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
fit inside an application’s layout. For most applications, they’re HTML mixed with PHP, but they may end up as XML, CSV, or even binary data. A layout is presentation code that is wrapped around a view. $this->Form->input('title'); echo $this->Form->input('body', array('rows' => '3')); echo $this->Form->end('Save Post'); ?> We use the FormHelper to generate the opening tag for an HTML form. Here’s the HTML the model field specified. The $this->Form->end() call generates a submit button and ends the form. If a string is supplied as the first parameter to end(), the FormHelper outputs a submit button named0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 3.x
Database Setup Checking the Test Setup Test Case Conventions Creating Your First Test Case Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Testing Flash Messages Testing a JSON Responding Controller Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Testing Views Testing Testing Email Creating Test Suites Creating Tests for Plugins Generating Tests with Bake Integration with Jenkins Create a Job Add Test Database Config Add your Tests Run a Build Validation Creating Validators0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821 Generating Tests with Bake . . . . . . . . . . . . . with CakePHP. They can serve as practical examples for function and data member usage for a class. tests/TestCase/ Additional Reading 5 CakePHP Cookbook Documentation, Release 3.10 The IRC Channel IRC0 码力 | 967 页 | 2.80 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
Falcon v3.0.0-b1 DocumentationDocumentation, Release 3.0.0b1 $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list instead! First Steps The first thing we’ll do is install Falcon inside a fresh virtualenv. To that end, let’s create a new project folder called “look”, and set up a virtual environment within it that we create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__0 码力 | 338 页 | 1.14 MB | 1 年前3
共 77 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













