Tags » Codeproject

C# 7.0 - Tuples Re-Engineered

Tuples have been around for quite sometime as a convenient way of returning more than one value from a method. Even though Tuples were quite easy to use but from code-readability perspective, there were certainly room for improvement. 426 more words

.NET

Using Cookies with PHPUnit and Symfony Basic Client

Introduction

I was writing and running some simple PHPUnit functional tests using the Symfony basic client (as described here), and after authenticating (submitting a form), I noticed the client didn’t have any cookies set; or at least it appears that way. 423 more words

CodeProject

PHPUnit Code Coverage in Symfony

Introduction

I’ve been creating some unit tests and functional tests for a Symfony application that I’m currently developing and I wanted to share some of those experiences. 563 more words

CodeProject

Simple PHPUnit Functional Tests in Symfony

Introduction

For a TRIO project I’m working on for Taft College, I needed to run some PHPUnit Functional tests for the TRIO Forms system I’m developing. 403 more words

CodeProject

Basic Symfony phpunit Functional Test

Introduction

This article is about creating a simple phpunit test in Symfony. The reason you would want to run phpunit tests, is to verify that code changes you made still work. 351 more words

CodeProject

Using the null-coalescing Operator in Twig

Introduction

Recently, I wanted to simplify my Twig code by only showing a filled in “Other” value when an “Other” checkbox had been selected and the Other value filled in within a… 177 more words

CodeProject

Simplified Web Development with JSON and the Twig Ternary Operator

Introduction

I’ve been looking at ways to simplify my code, make it easier to support, make it easier to use, and easier to maintain. I have found that… 720 more words

CodeProject