Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/practice/book-store/BookStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function testFourPairsPlusOne(): void
*
* uuid c0a779d5-a40c-47ae-9828-a340e936b866
*/
#[TestDox('Two copies of each boo')]
#[TestDox('Two copies of each book')]
public function testFivePairs(): void
{
$basket = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5];
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/food-chain/FoodChainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class FoodChainTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/grade-school/GradeSchoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class GradeSchoolTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/grains/GrainsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class GrainsTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/knapsack/KnapsackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class KnapsackTest extends TestCase
{
Expand Down
22 changes: 0 additions & 22 deletions exercises/practice/markdown/.meta/example.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
<?php

/*
* By adding type hints and enabling strict type checking, code can become
* easier to read, self-documenting and reduce the number of potential bugs.
* By default, type declarations are non-strict, which means they will attempt
* to change the original type to match the type specified by the
* type-declaration.
*
* In other words, if you pass a string to a function requiring a float,
* it will attempt to convert the string value to a float.
*
* To enable strict mode, a single declare directive must be placed at the top
* of the file.
* This means that the strictness of typing is configured on a per-file basis.
* This directive not only affects the type declarations of parameters, but also
* a function's return type.
*
* For more info review the Concept on strict type checking in the PHP track
* <link>.
*
* To disable strict typing, comment out the directive below.
*/

declare(strict_types=1);

function parseMarkdown($markdown)
Expand Down
24 changes: 1 addition & 23 deletions exercises/practice/markdown/MarkdownTest.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
<?php

/*
* By adding type hints and enabling strict type checking, code can become
* easier to read, self-documenting and reduce the number of potential bugs.
* By default, type declarations are non-strict, which means they will attempt
* to change the original type to match the type specified by the
* type-declaration.
*
* In other words, if you pass a string to a function requiring a float,
* it will attempt to convert the string value to a float.
*
* To enable strict mode, a single declare directive must be placed at the top
* of the file.
* This means that the strictness of typing is configured on a per-file basis.
* This directive not only affects the type declarations of parameters, but also
* a function's return type.
*
* For more info review the Concept on strict type checking in the PHP track
* <link>.
*
* To disable strict typing, comment out the directive below.
*/

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class MarkdownTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/matrix/MatrixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class MatrixTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/nth-prime/NthPrimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class NthPrimeTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/ocr-numbers/OcrNumbersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class OcrNumbersTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/prime-factors/PrimeFactorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class PrimeFactorsTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/resistor-color/ResistorColorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class ResistorColorTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/spiral-matrix/SpiralMatrixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class SpiralMatrixTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/triangle/TriangleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class TriangleTest extends TestCase
{
Expand Down
1 change: 1 addition & 0 deletions exercises/practice/word-count/WordCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\TestDox;

class WordCountTest extends TestCase
{
Expand Down
Loading