The PHP Handbook
//true false xor true //true false xor false //false We also have the not operator: $test = true !$test //false I used the boolean values true and false here, but in practice you’ll use expressions quotes is that with double quotes we can expand variables in this way: $test = 'an example'; $example = "This is $test"; //This is an example and with double quotes we can use escape characters $list = array(1, 2); Array can hold values of any type: $list = [1, 'test']; Even other arrays: $list = [1, [2, 'test']]; 23 You can access the element in an array using this notation: $list0 码力 | 97 页 | 8.78 MB | 1 年前3CakePHP Cookbook 2.x
cycle Benefits Where to Get Help The Official CakePHP website The Cookbook The Bakery The API The Test Cases The IRC channel Official CakePHP Forum Stackoverflow Where to get Help in your Language Controllers cronjobs Completion Shell Code Generation with Bake Schema management and migrations I18N shell ACL Shell Test shell Upgrade shell Development Configuration Database Configuration Additional Class Paths Core Debug Kit Xdebug Testing Installing PHPUnit Test Database Setup Checking the Test Setup Test Case Conventions Creating Your First Test Case Running Tests Test Case Lifecycle Callbacks Fixtures Testing Models0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook Documentation 5.x
the PHAR File Test 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 Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Schema with Migrations Creating Schema with Abstract Schema Creating Schema with SQL Data 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 Methods0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook 4.x
the PHAR File Test 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 Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Schema with Migrations Creating Schema with Abstract Schema Creating Schema with Data 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 Methods0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook Documentation 5.x
. . . . . . . . . . . . . 675 Test Database Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 676 Checking the Test Setup . . . . . . . . . . . . . . . . . . . . . . . . . 676 Test Case Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677 Creating Your First Test Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679 Test Case Lifecycle Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 3.x
the PHAR File Test 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 Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Fixtures Dynamic Data and Fixtures Importing Table Information Loading Fixtures in your Test Cases Fixture Fixture Factories Testing Table Classes Creating a Test Method Mocking Model Methods Controller Integration Testing Setting up the Request Testing Actions That Require Authentication Testing Stateless Authentication0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 4.x
. . . . . . . . . . . . . 777 Test Database Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 778 Checking the Test Setup . . . . . . . . . . . . . . . . . . . . . . . . . 778 Test Case Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779 Creating Your First Test Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 781 Test Case Lifecycle Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3CakePHP Cookbook 2.x
0 码力 | 820 页 | 2.52 MB | 1 年前 3CakePHP Cookbook 3.x
. . . . . . . . . . . . . 789 Test Database Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790 Checking the Test Setup . . . . . . . . . . . . . . . . . . . . . . . . . 791 Test Case Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791 Creating Your First Test Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793 v Test Case Lifecycle Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.80 MB | 1 年前3Falcon v1.2.0 Documentation
Contents CHAPTER 1 What People are Saying “Falcon looks great so far. I hacked together a quick test for a tiny server of mine and was ~40% faster with only 20 minutes of work.” “I’m loving #falconframework gevent • Minimal attack surface for writing secure APIs • 100% code coverage with a comprehensive test suite • Only depends on six and mimeparse • Supports Python 2.6, 2.7, 3.3, 3.4 and 3.5 • Compatible your app without having to reinstall the package: $ cd falcon $ pip install -e . You can manually test changes to the Falcon framework by switching to the directory of the cloned repo and then running0 码力 | 134 页 | 498.46 KB | 1 年前3
共 78 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8