Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Laravel News Podcast:
Episode #13 - Chrome Extension for Tests, Jigsaw, Fixing MySQL Memory & More
Apr 08, 2016 @ 10:52:03

The Laravel News Podcast has released their latest episode, Episode #13 hosted by PHP and Laravel community member Eric L. Barnes.

In this episode, we talk about Laravel Exception Reporter, Chrome Bandwidth limiter, Chrome extension to generate Laravel tests, Jigsaw, Helpspot Vault, Fixing MySql Memory, Sparkwatch, and Taxes.

You can listen to this latest episode either using the in-page audio player or by subscribing either through iTunes or their RSS feed.

tagged: laravelnews podcast ep13 chrome tests jigsaw vault mysql memory ericbarnes

Link: https://laravel-news.com/2016/04/laravel-news-podcast-13/

Loïc Chardonne:
Symfony Differently - part 2: Bootstrap
Jun 16, 2015 @ 10:46:03

Loïc Chardonne has posted the latest part in his "Symfony Differently" series (part one is here) with a focus on bootstrapping the application and configuring the environment that it will live in.

Our goal in this post is to bootstrap an application to then create a search endpoint for items. We've decided to use Symfony for a single reason: our company Acme used it since the beginning and the API developers team has Symfony and PHP skills.

He walks through the steps you'll need to get the application up and running:

  • Creating a new Symfony Standard Edition project
  • Configuring Apache
  • Moving the tests to a different directory, including Composer updates
  • Creating scripts for builds, testing and deployment

With all this structure in place, the next part of the series will start in on the functionality of the search endpoint and returning the results.

tagged: symfony bootstrap differently tutorial series part2 project apache scripts tests

Link: http://gnugat.github.io/2015/06/10/sf-differently-part-2-bootstrap.html

VG Tech:
Using PHP's Built-in Web Server in Behat Tests
Aug 19, 2013 @ 10:13:16

On the VG Tech blog there's a recent post showing you how you can use the built-in PHP web server to help with running your Behat (a behavior-driven development tool) tests.

Behat is a tool for running acceptance tests for your application. If your application is a web application you will need a web server to execute your tests. [...] Some weeks back I wrote a post showing you how to use PHP’s built in web server in PHPUnit. This post will show you how to do the same for Behat when running your acceptance tests.

His example (here on github) shows you how to set up Behat via Composer, run it and start in on your first test. In the test's "setUp" method, it calls out to the command line and starts up the built-in web server if it's not already running. It also checks to see if it can connect to the server to make sure it's accessible. Then, in the "tearDown" method, there's a call to kill off the PHP process based on the PID stored on startup.

tagged: builtin webserver bdd tests behat setup teardown

Link: http://tech.vg.no/2013/08/16/using-phps-built-in-web-server-in-behat-tests

Fabien Potencier:
About Symfony: Stability over Features
Apr 15, 2013 @ 10:12:34

Fabien Potencier (of the Symfony framework) has a new post to his site talking about a philosophy that the Symfony framework community should work towards, providing stability over features.

Long story short: in the coming months, the Symfony core contributors should focus their efforts toward stabilizing the existing features instead of working on new ones. At this point, backward compatibility and stability are more important than everything else.

He highlights some of the points that come along with this effort including less refactoring for the sake of refactoring, fixing more bugs/edge cases and writing more tests/documentation. He gets into some of the specifics of this kind of thinking and points out the things that can and can't be changed during this time. He talks more about stability and suggests that not only can it help enhance performance but it could also help motivate more projects/corporate users to start using the framework.

tagged: symfony stability features framework initiative tests bugs backward compatibility

Link: http://fabien.potencier.org/article/68/about-symfony-stability-over-features

Hari KT's Blog:
Is there a design flaw for the Components or Packages made by Symfony2 and ZF2
Mar 09, 2012 @ 09:03:36

Hari K T has a new post to his blog that shares his concern about a "design flaw" in the component/package methods promoted by Symfony2 and Zend Framework 2:

Looking from outside both Symfony2 and ZF2 is full of standalone components. But the reality is not the same. Though Symfony2 components are split into each components in github, you cannot give a pull request to that component. The tests for all the components still resides in the core.

He points to the Aura framework project as a good example of how to make a truly component-centric set of tools complete with tests bundled into the component's download right next to the source.

tagged: design flaw component symfony2 zendframework2 aura framework tests source

Link:

Brian Swan's Blog:
Running VisualPHPUnit in Windows Azure
Jan 11, 2012 @ 10:25:43

Brian Swan has posted another in his "unit testing on Azure" posts to his blog today. This time he shows how to get VisualPHPUnit running on your Windows Azure installed code.

Last month, I wrote a post that outlined 3 ways to test PHP applications in Windows Azure, and since then I’ve covered two of those approaches: Running PHPUnit in Windows Azure (uses RDP) and Automating PHPUnit Tests in Windows Azure. In this post I’ll cover how to use a web-front end (VisualPHPUnit specifically) to run tests in Azure.

The process is really simple - it's basically three steps (after the VisualPHPUnit install):

  • Edit the configuration file to point to the right tests directory
  • Password protect the VisualPHPUnit directory
  • Deploy your application by following the instructions here
tagged: unittest visualphpunit phpunit windows azure tests

Link:

Christopher Jones' Blog:
Configuring and Running PHP's OCI8 tests
Apr 11, 2007 @ 08:33:00

Christopher Jones shows us today how to set up and run tests (using the built-in extension testing PHP has) to test the OCI8 functionality that that extension provides.

The test suite can't test everything. You should test your applications with your new PHP too. This gives load and real-life testing not possible with PHP's script based test suite.

[...] The tests in ext/oci8/tests verify the behavior of the OCI8 extension. To run them follow these steps.

There's four steps he gives that will help you check your Oracle compile installation including what the response of the test results will look like.

tagged: oci8 tests configure extension steps oci8 tests configure extension steps

Link:

Christopher Jones' Blog:
Configuring and Running PHP's OCI8 tests
Apr 11, 2007 @ 08:33:00

Christopher Jones shows us today how to set up and run tests (using the built-in extension testing PHP has) to test the OCI8 functionality that that extension provides.

The test suite can't test everything. You should test your applications with your new PHP too. This gives load and real-life testing not possible with PHP's script based test suite.

[...] The tests in ext/oci8/tests verify the behavior of the OCI8 extension. To run them follow these steps.

There's four steps he gives that will help you check your Oracle compile installation including what the response of the test results will look like.

tagged: oci8 tests configure extension steps oci8 tests configure extension steps

Link:

Zend Developer Zone:
Ed Finkler Talks About PHPSecInfo
Oct 23, 2006 @ 09:37:00

Cal Evans over on the Zend Developer Zone has another of his infamous (well, okay - not infamous, but definitely good) interviews with people all around the PHP community. This time, it's a chat with Ed Finkler, a developer over at CERIAS concerning the new security tool designed to help even the security-clueless to protect themselves and their system.

Intrigued as much by this project, as I was by the fact that Ed wrote me and told me it was time for me to interview him, I called Ed and we talked about the project.

They talk about where the idea for the tool came from, one of the targets for the use of the project (those on shared hosting), and the mention that it is modular in design and they are more than happy to have developers work up tests to be sure things are working 100% correctly.

tagged: interview phpsecinfo tool shared hosting cerias tests interview phpsecinfo tool shared hosting cerias tests

Link:

Zend Developer Zone:
Ed Finkler Talks About PHPSecInfo
Oct 23, 2006 @ 09:37:00

Cal Evans over on the Zend Developer Zone has another of his infamous (well, okay - not infamous, but definitely good) interviews with people all around the PHP community. This time, it's a chat with Ed Finkler, a developer over at CERIAS concerning the new security tool designed to help even the security-clueless to protect themselves and their system.

Intrigued as much by this project, as I was by the fact that Ed wrote me and told me it was time for me to interview him, I called Ed and we talked about the project.

They talk about where the idea for the tool came from, one of the targets for the use of the project (those on shared hosting), and the mention that it is modular in design and they are more than happy to have developers work up tests to be sure things are working 100% correctly.

tagged: interview phpsecinfo tool shared hosting cerias tests interview phpsecinfo tool shared hosting cerias tests

Link: