Skip to content

Commit

Permalink
Sync zebra puzzle (#700)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
mk-mxp authored Apr 30, 2024
1 parent 1f04183 commit a361148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
22 changes: 0 additions & 22 deletions exercises/practice/zebra-puzzle/.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);

class ZebraPuzzle
Expand Down
24 changes: 2 additions & 22 deletions exercises/practice/zebra-puzzle/ZebraPuzzleTest.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);

class ZebraPuzzleTest extends PHPUnit\Framework\TestCase
Expand All @@ -40,6 +18,7 @@ public function setUp(): void

/**
* uuid: 16efb4e4-8ad7-4d5e-ba96-e5537b66fd42
* @testdox Resident who drinks water
*/
public function testResidentWhoDrinksWater(): void
{
Expand All @@ -48,6 +27,7 @@ public function testResidentWhoDrinksWater(): void

/**
* uuid: 084d5b8b-24e2-40e6-b008-c800da8cd257
* @testdox Resident who owns zebra
*/
public function testResidentWhoOwnsZebra(): void
{
Expand Down

0 comments on commit a361148

Please sign in to comment.