repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/PageTest.php
tests/Unit/Pages/PageTest.php
<?php namespace Notion\Test\Unit\Pages; use Notion\Common\Date; use Notion\Common\Emoji; use Notion\Common\File; use Notion\Common\Icon; use Notion\Pages\Page; use Notion\Pages\PageParent; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\RichTextProperty; use Notion\Pages\Properties\Title; use PH...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/RelationTest.php
tests/Unit/Pages/Properties/RelationTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\Relation; use PHPUnit\Framework\TestCase; class RelationTest extends TestCase { public function test_create(): void { $id1 = "5604389a-...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/FormulaTest.php
tests/Unit/Pages/Properties/FormulaTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use DateTimeImmutable; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\Formula; use Notion\Pages\Properties\FormulaType; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class FormulaTest extends TestCase { publi...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/MultiSelectTest.php
tests/Unit/Pages/Properties/MultiSelectTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Databases\Properties\SelectOption; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\MultiSelect; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class MultiSelectTest extends TestCase { public function...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/TitleTest.php
tests/Unit/Pages/Properties/TitleTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Common\RichText; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\Title; use PHPUnit\Framework\TestCase; class TitleTest extends TestCase { public function test_create(): void { $title = Title::fromText(RichText::fromS...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/EmailTest.php
tests/Unit/Pages/Properties/EmailTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\Email; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class EmailTest extends TestCase { public function test_create(): void { $email = Email::create(...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/UnknownTest.php
tests/Unit/Pages/Properties/UnknownTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\Unknown; use PHPUnit\Framework\TestCase; class UnknownTest extends TestCase { public function test_serialization(): void { $array = [ ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/LastEditedByTest.php
tests/Unit/Pages/Properties/LastEditedByTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\LastEditedBy; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class LastEditedByTest extends TestCase { public function test_array_conversion(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/FilesTest.php
tests/Unit/Pages/Properties/FilesTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Common\File; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\Files; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class FilesTest extends TestCase { public function test_create(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/UniqueIdTest.php
tests/Unit/Pages/Properties/UniqueIdTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\UniqueId; use PHPUnit\Framework\TestCase; class UniqueIdTest extends TestCase { public function test_array_conversion(): void { $array ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/DateTest.php
tests/Unit/Pages/Properties/DateTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use DateTimeImmutable; use Notion\Pages\Properties\Date; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class DateTest extends TestCase { public function test_create_date(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/PhoneNumberTest.php
tests/Unit/Pages/Properties/PhoneNumberTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\PhoneNumber; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class PhoneNumberTest extends TestCase { public function test_create(): void { $phone = Ph...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/PeopleTest.php
tests/Unit/Pages/Properties/PeopleTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\People; use Notion\Pages\Properties\PropertyType; use Notion\Users\User; use PHPUnit\Framework\TestCase; class PeopleTest extends TestCase { public function test_create(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/PropertyCollectionTest.php
tests/Unit/Pages/Properties/PropertyCollectionTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use DateTimeImmutable; use Exception; use Notion\Pages\Properties\PropertyCollection; use Notion\Pages\Properties; use PHPUnit\Framework\TestCase; use TypeError; class PropertyCollectionTest extends TestCase { public function test_create(): void { $p...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/CreatedTimeTest.php
tests/Unit/Pages/Properties/CreatedTimeTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use DateTimeImmutable; use Notion\Pages\Properties\CreatedTime; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class CreatedTimeTest extends TestCase { public function test_create(): void ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/NumberTest.php
tests/Unit/Pages/Properties/NumberTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Common\RichText; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\Number; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class NumberTest extends TestCase { public function test_create(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/StatusTest.php
tests/Unit/Pages/Properties/StatusTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Common\Color; use Notion\Databases\Properties\StatusOption; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\Status; use PHPUnit\Framework\TestCase; class StatusTest extends TestCase { public function test_from_id(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/SelectTest.php
tests/Unit/Pages/Properties/SelectTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Common\Color; use Notion\Databases\Properties\SelectOption; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\Select; use PHPUnit\Framework\TestCase; class SelectTest extends TestCase { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/CheckboxTest.php
tests/Unit/Pages/Properties/CheckboxTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\Checkbox; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class CheckboxTest extends TestCase { public function test_create_checked(): void { $checkbox...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/LastEditedTimeTest.php
tests/Unit/Pages/Properties/LastEditedTimeTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\LastEditedTime; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class LastEditedTimeTest extends TestCase { public function test_array_conversion(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/UrlTest.php
tests/Unit/Pages/Properties/UrlTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\Url; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class UrlTest extends TestCase { public function test_create(): void { $url = Url::create("https:/...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/CreatedByTest.php
tests/Unit/Pages/Properties/CreatedByTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Pages\Properties\CreatedBy; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use PHPUnit\Framework\TestCase; class CreatedByTest extends TestCase { public function test_array_conversion(): void { $arra...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/Properties/RichTextPropertyTest.php
tests/Unit/Pages/Properties/RichTextPropertyTest.php
<?php namespace Notion\Test\Unit\Pages\Properties; use Notion\Common\RichText; use Notion\Pages\Properties\PropertyFactory; use Notion\Pages\Properties\PropertyType; use Notion\Pages\Properties\RichTextProperty; use PHPUnit\Framework\TestCase; class RichTextPropertyTest extends TestCase { public function test_cr...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/QueryTest.php
tests/Unit/Databases/QueryTest.php
<?php namespace Notion\Test\Unit\Databases; use Exception; use Notion\Databases\Query; use Notion\Databases\Query\Sort; use Notion\Databases\Query\TextFilter; use PHPUnit\Framework\TestCase; class QueryTest extends TestCase { public function test_empty_query(): void { $query = Query::create(); ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/DatabaseParentTest.php
tests/Unit/Databases/DatabaseParentTest.php
<?php namespace Notion\Test\Unit\Databases; use Notion\Databases\DatabaseParent; use PHPUnit\Framework\TestCase; class DatabaseParentTest extends TestCase { public function test_create_parent_page(): void { $parent = DatabaseParent::page("058d158b-09de-4d69-be07-901c20a7ca5c"); $this->assert...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/DatabaseTest.php
tests/Unit/Databases/DatabaseTest.php
<?php namespace Notion\Test\Unit\Databases; use Exception; use Notion\Common\Date; use Notion\Common\Emoji; use Notion\Common\File; use Notion\Common\Icon; use Notion\Common\RichText; use Notion\Databases\Database; use Notion\Databases\DatabaseParent; use Notion\Databases\Properties\Number; use Notion\Databases\Prope...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/RelationTest.php
tests/Unit/Databases/Properties/RelationTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\Relation; use PHPUnit\Framework\TestCase; class RelationTest extends TestCase { public function test_create_unidirectional(): void { $databaseId = "04eecdf8-f2d9-43a...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/FormulaTest.php
tests/Unit/Databases/Properties/FormulaTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\Formula; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class FormulaTest extends TestCase { public function test_create(): void { $ex...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/MultiSelectTest.php
tests/Unit/Databases/Properties/MultiSelectTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\MultiSelect; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\SelectOption; use PHPUnit\Framework\TestCase; class MultiSelectTest extends TestCase { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/TitleTest.php
tests/Unit/Databases/Properties/TitleTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\Title; use PHPUnit\Framework\TestCase; class TitleTest extends TestCase { public function test_create(): void { $title ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/EmailTest.php
tests/Unit/Databases/Properties/EmailTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\Email; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class EmailTest extends TestCase { public function test_create(): void { $email ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/UnknownTest.php
tests/Unit/Databases/Properties/UnknownTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\Unknown; use PHPUnit\Framework\TestCase; class UnknownTest extends TestCase { public function test_serialization(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/SelectOptionTest.php
tests/Unit/Databases/Properties/SelectOptionTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Common\Color; use Notion\Databases\Properties\SelectOption; use PHPUnit\Framework\TestCase; class SelectOptionTest extends TestCase { public function test_change_color(): void { $option = SelectOption::fromName("Comedy") ->...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/LastEditedByTest.php
tests/Unit/Databases/Properties/LastEditedByTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\LastEditedBy; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class LastEditedByTest extends TestCase { public function test_create(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/FilesTest.php
tests/Unit/Databases/Properties/FilesTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\Files; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class FilesTest extends TestCase { public function test_create(): void { $files ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/UniqueIdTest.php
tests/Unit/Databases/Properties/UniqueIdTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\UniqueId; use PHPUnit\Framework\TestCase; class UniqueIdTest extends TestCase { public function test_array_conversion(): void {...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/DateTest.php
tests/Unit/Databases/Properties/DateTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\Date; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class DateTest extends TestCase { public function test_create(): void { $date = D...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/PhoneNumberTest.php
tests/Unit/Databases/Properties/PhoneNumberTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PhoneNumber; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class PhoneNumberTest extends TestCase { public function test_create(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/PeopleTest.php
tests/Unit/Databases/Properties/PeopleTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\People; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class PeopleTest extends TestCase { public function test_create(): void { $peop...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/RichTextTest.php
tests/Unit/Databases/Properties/RichTextTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Common\RichText; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\RichTextProperty; use PHPUnit\Framework\TestCase; class RichTextTest extends TestCase { public function...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/PropertyCollectionTest.php
tests/Unit/Databases/Properties/PropertyCollectionTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use DateTimeImmutable; use Exception; use Notion\Databases\Properties\PropertyCollection; use Notion\Databases\Properties; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class PropertyCollectionTest extends TestCase { public fu...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/CreatedTimeTest.php
tests/Unit/Databases/Properties/CreatedTimeTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\CreatedTime; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class CreatedTimeTest extends TestCase { public function test_create(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/NumberTest.php
tests/Unit/Databases/Properties/NumberTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\Number; use Notion\Databases\Properties\NumberFormat; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class NumberTest extends TestCase { public fu...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/StatusTest.php
tests/Unit/Databases/Properties/StatusTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\Status; use PHPUnit\Framework\TestCase; class StatusTest extends TestCase { public function test_array_conversion(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/SelectTest.php
tests/Unit/Databases/Properties/SelectTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\Select; use Notion\Databases\Properties\SelectOption; use PHPUnit\Framework\TestCase; class SelectTest extends TestCase { public fu...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/CheckboxTest.php
tests/Unit/Databases/Properties/CheckboxTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\Checkbox; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class CheckboxTest extends TestCase { public function test_create(): void { $...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/LastEditedTimeTest.php
tests/Unit/Databases/Properties/LastEditedTimeTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\LastEditedTime; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class LastEditedTimeTest extends TestCase { public function test_create(): void ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/UrlTest.php
tests/Unit/Databases/Properties/UrlTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\PropertyType; use Notion\Databases\Properties\Url; use PHPUnit\Framework\TestCase; class UrlTest extends TestCase { public function test_create(): void { $url = Url:...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/PropertyMetadataTest.php
tests/Unit/Databases/Properties/PropertyMetadataTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyMetadata; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class PropertyMetadataTest extends TestCase { public function test_create(): void { $metadata = PropertyMetadata::crea...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Properties/CreatedByTest.php
tests/Unit/Databases/Properties/CreatedByTest.php
<?php namespace Notion\Test\Unit\Databases\Properties; use Notion\Databases\Properties\PropertyFactory; use Notion\Databases\Properties\CreatedBy; use Notion\Databases\Properties\PropertyType; use PHPUnit\Framework\TestCase; class CreatedByTest extends TestCase { public function test_create(): void { ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/CheckboxFilterTest.php
tests/Unit/Databases/Query/CheckboxFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\CheckboxFilter; use Notion\Databases\Query\Operator; use PHPUnit\Framework\TestCase; class CheckboxFilterTest extends TestCase { public function test_empty_filter(): void { $filter = CheckboxFilter::property("Done"); ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/ResultTest.php
tests/Unit/Databases/Query/ResultTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\Result; use PHPUnit\Framework\TestCase; class ResultTest extends TestCase { public function test_from_array(): void { $apiResponse = [ "results" => [ [ "object" => "page", ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/PeopleFilterTest.php
tests/Unit/Databases/Query/PeopleFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\Operator; use Notion\Databases\Query\PeopleFilter; use PHPUnit\Framework\TestCase; class PeopleFilterTest extends TestCase { public function test_empty_filter(): void { $filter = PeopleFilter::property("Friends"); $...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/SortTest.php
tests/Unit/Databases/Query/SortTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\Sort; use PHPUnit\Framework\TestCase; class SortTest extends TestCase { public function test_sort_by_property(): void { $sort = Sort::property("Title"); $expected = [ "property" => "Title", "...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/NumberFilterTest.php
tests/Unit/Databases/Query/NumberFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\NumberFilter; use Notion\Databases\Query\Operator; use PHPUnit\Framework\TestCase; class NumberFilterTest extends TestCase { public function test_empty_filter(): void { $filter = NumberFilter::property("Downloads"); ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/RelationFilterTest.php
tests/Unit/Databases/Query/RelationFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\Operator; use Notion\Databases\Query\RelationFilter; use PHPUnit\Framework\TestCase; class RelationFilterTest extends TestCase { public function test_empty_filter(): void { $filter = RelationFilter::property("Category"); ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/TextFilterTest.php
tests/Unit/Databases/Query/TextFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\Operator; use Notion\Databases\Query\TextFilter; use PHPUnit\Framework\TestCase; class TextFilterTest extends TestCase { public function test_empty_filter(): void { $filter = TextFilter::property("Title"); $this->as...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/SelectFilterTest.php
tests/Unit/Databases/Query/SelectFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\Operator; use Notion\Databases\Query\SelectFilter; use PHPUnit\Framework\TestCase; class SelectFilterTest extends TestCase { public function test_empty_filter(): void { $filter = SelectFilter::property("Category"); ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/DateFilterTest.php
tests/Unit/Databases/Query/DateFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\DateFilter; use Notion\Databases\Query\Operator; use PHPUnit\Framework\TestCase; use stdClass; class DateFilterTest extends TestCase { public function test_property(): void { $filter = DateFilter::property("Release date"); ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/CompoundFilterTest.php
tests/Unit/Databases/Query/CompoundFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\CompoundFilter; use Notion\Databases\Query\DateFilter; use Notion\Databases\Query\SelectFilter; use Notion\Databases\Query\TextFilter; use PHPUnit\Framework\TestCase; use stdClass; class CompoundFilterTest extends TestCase { public func...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/MultiSelectFilterTest.php
tests/Unit/Databases/Query/MultiSelectFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\MultiSelectFilter; use Notion\Databases\Query\Operator; use PHPUnit\Framework\TestCase; class MultiSelectFilterTest extends TestCase { public function test_empty_filter(): void { $filter = MultiSelectFilter::property("Catego...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Databases/Query/StatusFilterTest.php
tests/Unit/Databases/Query/StatusFilterTest.php
<?php namespace Notion\Test\Unit\Databases\Query; use Notion\Databases\Query\Operator; use Notion\Databases\Query\StatusFilter; use PHPUnit\Framework\TestCase; class StatusFilterTest extends TestCase { public function test_empty_filter(): void { $filter = StatusFilter::property("Status"); $t...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/FileTest.php
tests/Unit/Common/FileTest.php
<?php namespace Notion\Test\Unit\Common; use DateTimeImmutable; use Notion\Common\File; use Notion\Common\FileType; use Notion\Common\RichText; use PHPUnit\Framework\TestCase; class FileTest extends TestCase { public function test_create_internal(): void { $expiryTime = new DateTimeImmutable("2021-01...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/EquationTest.php
tests/Unit/Common/EquationTest.php
<?php namespace Notion\Test\Unit\Common; use Notion\Common\Equation; use PHPUnit\Framework\TestCase; class EquationTest extends TestCase { public function test_array_conversion(): void { $array = [ "expression" => "a^2 + b^2 = c^2", ]; $equation = Equation::fromArray($arr...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/DateTest.php
tests/Unit/Common/DateTest.php
<?php namespace Notion\Test\Unit\Common; use DateTimeImmutable; use Notion\Common\Date; use PHPUnit\Framework\TestCase; class DateTest extends TestCase { public function test_array_conversion(): void { $array = [ "start" => "2021-01-01T00:00:00.000000Z", "end" => "2021-12-31...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/MentionTest.php
tests/Unit/Common/MentionTest.php
<?php namespace Notion\Test\Unit\Common; use DateTimeImmutable; use Notion\Common\Date; use Notion\Common\Mention; use Notion\Common\MentionType; use Notion\Users\User; use PHPUnit\Framework\TestCase; class MentionTest extends TestCase { public function test_mention_page(): void { $mention = Mention:...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/RichTextTest.php
tests/Unit/Common/RichTextTest.php
<?php namespace Notion\Test\Unit\Common; use DateTimeImmutable; use Notion\Common\Color; use Notion\Common\Date; use Notion\Common\Equation; use Notion\Common\Mention; use Notion\Common\RichText; use Notion\Common\Text; use PHPUnit\Framework\TestCase; class RichTextTest extends TestCase { public function test_cr...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/TextTest.php
tests/Unit/Common/TextTest.php
<?php namespace Notion\Test\Unit\Common; use Notion\Common\Text; use PHPUnit\Framework\TestCase; class TextTest extends TestCase { public function test_create_text(): void { $text = Text::fromString("Simple text"); $this->assertEquals("Simple text", $text->content); } public functio...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/AnnotationsTest.php
tests/Unit/Common/AnnotationsTest.php
<?php namespace Notion\Test\Unit\Common; use Notion\Common\Annotations; use Notion\Common\Color; use PHPUnit\Framework\TestCase; class AnnotationsTest extends TestCase { public function test_without_annotations(): void { $annotations = Annotations::create(); $this->assertFalse($annotations->...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/IconTest.php
tests/Unit/Common/IconTest.php
<?php namespace Notion\Test\Unit\Common; use Notion\Common\File; use Notion\Common\Icon; use PHPUnit\Framework\TestCase; class IconTest extends TestCase { public function test_icon_from_file_array_conversion(): void { $file = File::createExternal("http://example.com/icon.png"); $icon = Icon::...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Common/ParentBlockTest.php
tests/Unit/Common/ParentBlockTest.php
<?php namespace Notion\Test\Unit\Common; use Notion\Common\ParentBlock; use Notion\Common\ParentType; use PHPUnit\Framework\TestCase; class ParentBlockTest extends TestCase { public function test_page(): void { $id = "5e406817-16ab-4a71-a7d4-e1f0ea5629e4"; $parent = ParentBlock::page($id); ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Comments/CommentTest.php
tests/Unit/Comments/CommentTest.php
<?php namespace Notion\Test\Unit\Comments; use Notion\Comments\Comment; use Notion\Common\ParentType; use Notion\Common\RichText; use PHPUnit\Framework\TestCase; class CommentTest extends TestCase { public function test_create_page_comment(): void { $pageId = "8e2b2ad4-63f6-4e9c-8036-9a19c8d3c896"; ...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Search/SortTest.php
tests/Unit/Search/SortTest.php
<?php namespace Notion\Test\Unit\Search; use Notion\Search\Sort; use Notion\Search\SortDirection; use Notion\Search\SortTimestamp; use PHPUnit\Framework\TestCase; class SortTest extends TestCase { public function test_create(): void { $s = Sort::create(); $this->assertSame(SortDirection::Des...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Search/FilterTest.php
tests/Unit/Search/FilterTest.php
<?php namespace Notion\Test\Unit\Search; use Notion\Search\Filter; use Notion\Search\FilterProperty; use Notion\Search\FilterValue; use PHPUnit\Framework\TestCase; class FilterTest extends TestCase { public function test_by_pages(): void { $f = Filter::byPages(); $this->assertSame(FilterValu...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Search/QueryTest.php
tests/Unit/Search/QueryTest.php
<?php namespace Notion\Test\Unit\Search; use Notion\Search\FilterValue; use Notion\Search\Query; use Notion\Search\SortDirection; use PHPUnit\Framework\TestCase; class QueryTest extends TestCase { public function test_term(): void { $q = Query::title("Search term"); $this->assertSame("Search...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
mariosimao/notion-sdk-php
https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Infrastructure/HttpTest.php
tests/Unit/Infrastructure/HttpTest.php
<?php namespace Notion\Test\Unit\Infrastructure; use GuzzleHttp\Client; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\HttpFactory; use GuzzleHttp\Psr7\Response; use Notion\Configuration; use Notion\Exceptions\ConflictException; use Notion\Notion; use Notion\Pages\Page; use Notio...
php
MIT
8edcaf170cba9aeb823348e5a42c267e8069a7f4
2026-01-05T03:57:23.049347Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Base.php
src/PhpSlackBot/Base.php
<?php namespace PhpSlackBot; abstract class Base { private $name; private $client; private $user; private $context; private $mentionOnly = false; private $channel; private $caseInsensitive = false; abstract protected function configure(); abstract protected function execute($message...
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Bot.php
src/PhpSlackBot/Bot.php
<?php namespace PhpSlackBot; class Bot { private $params = array(); private $context = array(); private $wsUrl; private $commands = array(); private $webhooks = array(); private $webserverPort = null; private $webserverHost = null; private $webserverAuthentificationToken = null; pr...
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/ActiveMessenger/Push.php
src/PhpSlackBot/ActiveMessenger/Push.php
<?php namespace PhpSlackBot\ActiveMessenger; use PhpSlackBot\Base; class Push extends Base { /** * @param string $channelOrUsername Channel name (not Channel ID assigned by Slack) to which message is to be sent. * Usernames can also be passed. * ...
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Webhook/OutputWebhook.php
src/PhpSlackBot/Webhook/OutputWebhook.php
<?php namespace PhpSlackBot\Webhook; class OutputWebhook extends BaseWebhook { protected function configure() { $this->setName('output'); } protected function execute($payload, $context) { $payload['channel'] = $this->getChannelIdFromChannelName($payload['channel']); $this...
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Webhook/BaseWebhook.php
src/PhpSlackBot/Webhook/BaseWebhook.php
<?php namespace PhpSlackBot\Webhook; abstract class BaseWebhook extends \PhpSlackBot\Base { public function executeWebhook($payload, $context) { return $this->execute($payload, $context); } }
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Command/DateCommand.php
src/PhpSlackBot/Command/DateCommand.php
<?php namespace PhpSlackBot\Command; class DateCommand extends BaseCommand { protected function configure() { $this->setName('date'); } protected function execute($message, $context) { $this->send($this->getCurrentChannel(), null, date("D M j G:i:s T Y")); } }
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Command/PingPongCommand.php
src/PhpSlackBot/Command/PingPongCommand.php
<?php namespace PhpSlackBot\Command; class PingPongCommand extends BaseCommand { protected function configure() { $this->setName('ping'); } protected function execute($message, $context) { $this->send($this->getCurrentChannel(), $this->getCurrentUser(), 'Pong'); } }
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Command/PokerPlanningCommand.php
src/PhpSlackBot/Command/PokerPlanningCommand.php
<?php namespace PhpSlackBot\Command; class PokerPlanningCommand extends BaseCommand { private $count = 0; private $initiator; private $scores = array(); private $status = 'free'; protected function configure() { $this->setName('pokerp'); } protected function execute($message,...
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Command/CountCommand.php
src/PhpSlackBot/Command/CountCommand.php
<?php namespace PhpSlackBot\Command; class CountCommand extends BaseCommand { private $count = 0; protected function configure() { $this->setName('count'); } protected function execute($message, $context) { $this->send($this->getCurrentChannel(), null, $this->count); ...
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
jclg/php-slack-bot
https://github.com/jclg/php-slack-bot/blob/6631b71d2bb48371c738ac439a9afe72ce28c098/src/PhpSlackBot/Command/BaseCommand.php
src/PhpSlackBot/Command/BaseCommand.php
<?php namespace PhpSlackBot\Command; abstract class BaseCommand extends \PhpSlackBot\Base { public function executeCommand($message, $context) { return $this->execute($message, $context); } }
php
MIT
6631b71d2bb48371c738ac439a9afe72ce28c098
2026-01-05T03:57:33.635341Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Exceptions/Handler.php
app/Exceptions/Handler.php
<?php namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Throwable; class Handler extends ExceptionHandler { /** * The list of the inputs that are never flashed to the session on validation exceptions. * * @var array<int, string> */ protected $...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Kernel.php
app/Http/Kernel.php
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array<int, class-string|string> */ ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Requests/UploadRequest.php
app/Http/Requests/UploadRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UploadRequest extends FormRequest { protected array $allowedTypes = [ 'jpg', 'png', 'svg', 'webp', 'gif', ]; /** * Get the validation rules that apply to the request. * ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Requests/UpdateShotRequest.php
app/Http/Requests/UpdateShotRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateShotRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> */ public f...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Requests/ProfileUpdateRequest.php
app/Http/Requests/ProfileUpdateRequest.php
<?php namespace App\Http\Requests; use App\Models\User; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class ProfileUpdateRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Requests/Auth/LoginRequest.php
app/Http/Requests/Auth/LoginRequest.php
<?php namespace App\Http\Requests\Auth; use Illuminate\Auth\Events\Lockout; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Str; use Illuminate\Validation\ValidationException; class LoginRequest extends FormRequest { ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/ProfileController.php
app/Http/Controllers/ProfileController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\ProfileUpdateRequest; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Redirect; use Inertia\Inertia; use Inertia\Response; ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Controller.php
app/Http/Controllers/Controller.php
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use AuthorizesRequests, ValidatesRequests; }
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/ShotController.php
app/Http/Controllers/ShotController.php
<?php namespace App\Http\Controllers; use App\Enums\ReactionType; use App\Http\Requests\UpdateShotRequest; use App\Models\Shot; use App\Models\ShotReaction; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Storage; use Illuminate\Validation\R...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/ApiKeyController.php
app/Http/Controllers/ApiKeyController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\Response; class ApiKeyController extends Controller { public function store(Request $request) { $this->validate($request, [ 'name' => ['string', 'sometimes', 'nullable'], ]); $token = $...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/UploadController.php
app/Http/Controllers/UploadController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\UploadRequest; use Illuminate\Http\UploadedFile; class UploadController extends Controller { public function __invoke(UploadRequest $request) { $parentShot = null; foreach ($request->files->get('images') as $i => $image) { ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Auth/EmailVerificationNotificationController.php
app/Http/Controllers/Auth/EmailVerificationNotificationController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; class EmailVerificationNotificationController extends Controller { /** * Send a new email verification notification. ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Auth/RegisteredUserController.php
app/Http/Controllers/Auth/RegisteredUserController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\User; use App\Providers\RouteServiceProvider; use Illuminate\Auth\Events\Registered; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Has...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Auth/ConfirmablePasswordController.php
app/Http/Controllers/Auth/ConfirmablePasswordController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Validation\ValidationException; use Inertia\Inertia; use Inertia\Response; cla...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false